Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002073/0.002073, allocations: 120.1 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002691/0.002691, allocations: 218.2 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 59.91 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1668, allocations: 53.37 MB / 427.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.003205/0.17, allocations: 1.591 MB / 428.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1712, allocations: 0.5415 MB / 429.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.114e-05/0.1713, allocations: 0 / 429.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.148e-05/0.1714, allocations: 7.922 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.1715, allocations: 15.88 kB / 429.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.1718, allocations: 51.81 kB / 429.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.172, allocations: 43.86 kB / 429.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.1721, allocations: 15.97 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.1722, allocations: 27.88 kB / 429.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.48e-05/0.1723, allocations: 23.86 kB / 429.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.1723, allocations: 4 kB / 429.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.1723, allocations: 7.984 kB / 429.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.853e-05/0.1724, allocations: 15.92 kB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.646e-05/0.1725, allocations: 31.8 kB / 429.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.1726, allocations: 51.75 kB / 429.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1726, allocations: 0 / 429.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1726, allocations: 7.984 kB / 429.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1726, allocations: 3.938 kB / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005852/0.1732, allocations: 375 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1733, allocations: 12.03 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.346e-05/0.1733, allocations: 4.125 kB / 429.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.1733, allocations: 38.75 kB / 429.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/0.1735, allocations: 24.83 kB / 429.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003495/0.1739, allocations: 200.2 kB / 430.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1739, allocations: 384 / 430.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.1739, allocations: 4.375 kB / 430.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.1742, allocations: 120.9 kB / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1742, allocations: 0 / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.1742, allocations: 7.984 kB / 430.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1742, allocations: 4 kB / 430.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.079e-05/0.1743, allocations: 19.98 kB / 430.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004093/0.1747, allocations: 265.8 kB / 430.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.175, allocations: 134.2 kB / 430.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.301e-05/0.1751, allocations: 25.77 kB / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.1751, allocations: 3.984 kB / 430.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.1751, allocations: 46.5 kB / 430.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.1751, allocations: 0 / 430.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002889/0.1754, allocations: 73.62 kB / 430.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.682e-05/0.1755, allocations: 89.03 kB / 430.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.1757, allocations: 136.6 kB / 431.1 MB, free: 372 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1757, allocations: 29.7 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.273e-05/0.1758, allocations: 88.27 kB / 431.2 MB, free: 244 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.1758, allocations: 11.94 kB / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.1759, allocations: 17.72 kB / 431.2 MB, free: 208 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.176, allocations: 314.8 kB / 431.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.992e-05/0.1761, allocations: 15.98 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.037e-05/0.1761, allocations: 27.42 kB / 431.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.922e-05/0.1762, allocations: 55.36 kB / 431.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1762, allocations: 0 / 431.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00015/0.1764, allocations: 65.58 kB / 431.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.1764, allocations: 12.11 kB / 431.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1764, allocations: 8 kB / 431.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1764, allocations: 3.938 kB / 431.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.343e-05/0.1765, allocations: 15.88 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.1765, allocations: 3.984 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.239e-05/0.1766, allocations: 4 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1766, allocations: 3.984 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.96e-05/0.1767, allocations: 121.8 kB / 431.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.447e-05/0.1768, allocations: 53.64 kB / 431.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.669e-05/0.1768, allocations: 8.25 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.1768, allocations: 4.328 kB / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1768, allocations: 0 / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1768, allocations: 0 / 431.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002172/0.177, allocations: 173.6 kB / 432.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.177, allocations: 7.938 kB / 432.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.585e-05/0.1771, allocations: 7.984 kB / 432.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1771, allocations: 4 kB / 432.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.587e-06/0.1771, allocations: 4 kB / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1771, allocations: 0 / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1771, allocations: 4 kB / 432.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.1773, allocations: 168.3 kB / 432.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.34e-05/0.1774, allocations: 96.98 kB / 432.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.1774, allocations: 7.984 kB / 432.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.689e-05/0.1775, allocations: 0 / 432.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.1775, allocations: 4 kB / 432.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.1775, allocations: 7.938 kB / 432.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.199e-05/0.1776, allocations: 107.2 kB / 432.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1776, allocations: 0 / 432.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1778, allocations: 8 kB / 432.5 MB, free: 14.76 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005014/0.1783, allocations: 0.7015 MB / 433.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.1785, allocations: 31.91 kB / 433.2 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1785, allocations: 0 / 433.2 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.165e-05/0.1785, allocations: 12 kB / 433.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.1789, allocations: 19.95 kB / 433.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.1804, allocations: 1.367 MB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1807, allocations: 0.6962 MB / 435.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.309e-05/0.1807, allocations: 7.906 kB / 435.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.696e-05/0.1808, allocations: 19.38 kB / 435.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1808, allocations: 0 / 435.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.2002, allocations: 1.627 MB / 437 MB, free: 10.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.605/8.806, allocations: 16.02 kB / 437 MB, free: 10.22 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 12.047276159981266]