Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.001602/0.001602, allocations: 120.1 kB / 18.49 MB, free: 4.59 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.00184/0.00184, allocations: 214.2 kB / 21.45 MB, free: 1.637 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.533/1.533, allocations: 230.5 MB / 254.7 MB, free: 14.98 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.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 63.91 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1396, allocations: 53.37 MB / 427.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.003558/0.1432, allocations: 1.511 MB / 428.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1442, allocations: 482.7 kB / 429 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.427e-05/0.1443, allocations: 0 / 429 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.881e-05/0.1444, allocations: 3.938 kB / 429.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001/0.1445, allocations: 11.92 kB / 429.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.1449, allocations: 35.89 kB / 429.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.145, allocations: 39.73 kB / 429.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1451, allocations: 12 kB / 429.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.1453, allocations: 23.92 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.135e-05/0.1454, allocations: 15.92 kB / 429.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.1454, allocations: 7.984 kB / 429.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.614e-05/0.1455, allocations: 8 kB / 429.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.488e-05/0.1455, allocations: 0 / 429.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.045e-05/0.1455, allocations: 23.86 kB / 429.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.1457, allocations: 47.7 kB / 429.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1457, allocations: 3.984 kB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1457, allocations: 0 / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1457, allocations: 0 / 429.3 MB, free: 2.359 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005868/0.1463, allocations: 351.3 kB / 429.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.1463, allocations: 12.03 kB / 429.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.252e-05/0.1464, allocations: 192 / 429.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.047e-05/0.1464, allocations: 34.73 kB / 429.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1466, allocations: 16.94 kB / 429.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.1469, allocations: 180.3 kB / 429.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1469, allocations: 384 / 429.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.613e-05/0.1469, allocations: 8.375 kB / 429.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003523/0.1473, allocations: 115.2 kB / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1473, allocations: 0 / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1473, allocations: 4 kB / 430 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.1473, allocations: 0 / 430 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.352e-05/0.1474, allocations: 19.98 kB / 430 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.1476, allocations: 161.6 kB / 430.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.1477, allocations: 54.53 kB / 430.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.425e-05/0.1478, allocations: 32.86 kB / 430.2 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.1478, allocations: 3.938 kB / 430.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.1479, allocations: 34.56 kB / 430.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.232e-06/0.1479, allocations: 0 / 430.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002633/0.1481, allocations: 73.66 kB / 430.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.1482, allocations: 55.41 kB / 430.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.806e-05/0.1483, allocations: 117.8 kB / 430.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1483, allocations: 25.7 kB / 430.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.1484, allocations: 92.08 kB / 430.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.346e-06/0.1484, allocations: 0 / 430.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.1484, allocations: 17.7 kB / 430.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.1486, allocations: 314.8 kB / 431 MB, free: 452 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.433e-05/0.1486, allocations: 4 kB / 431 MB, free: 448 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.681e-05/0.1486, allocations: 35.44 kB / 431 MB, free: 400 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.542e-05/0.1487, allocations: 35.36 kB / 431 MB, free: 352 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1487, allocations: 7.938 kB / 431 MB, free: 344 kB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.988e-05/0.1488, allocations: 61.56 kB / 431.1 MB, free: 276 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.1488, allocations: 7.984 kB / 431.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1488, allocations: 0 / 431.1 MB, free: 268 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1488, allocations: 4 kB / 431.1 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.819e-05/0.1489, allocations: 4 kB / 431.1 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.1489, allocations: 3.938 kB / 431.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.756e-05/0.1489, allocations: 11.94 kB / 431.1 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.1489, allocations: 0 / 431.1 MB, free: 244 kB / 350.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.728e-05/0.149, allocations: 113.8 kB / 431.2 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.1492, allocations: 65.7 kB / 431.3 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.335e-05/0.1492, allocations: 7.906 kB / 431.3 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1492, allocations: 0 / 431.3 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1492, allocations: 4 kB / 431.3 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1492, allocations: 0 / 431.3 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1494, allocations: 161.6 kB / 431.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1494, allocations: 3.938 kB / 431.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.1495, allocations: 11.98 kB / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.1495, allocations: 0 / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1495, allocations: 0 / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1495, allocations: 7.938 kB / 431.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1495, allocations: 0 / 431.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.1497, allocations: 93.12 kB / 431.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.441e-05/0.1497, allocations: 85.38 kB / 431.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1498, allocations: 0 / 431.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.638e-05/0.1498, allocations: 7.984 kB / 431.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.424e-06/0.1498, allocations: 0 / 431.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.1498, allocations: 4 kB / 431.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.914e-05/0.1499, allocations: 91.59 kB / 431.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1499, allocations: 0 / 431.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.1501, allocations: 8 kB / 431.8 MB, free: 15.47 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0005582/0.1507, allocations: 0.6319 MB / 432.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.1508, allocations: 23.92 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1508, allocations: 4 kB / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-07/0.1508, allocations: 0 / 432.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.151, allocations: 30.14 kB / 432.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.1524, allocations: 1.194 MB / 433.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.1528, allocations: 0.6807 MB / 434.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.733e-05/0.1528, allocations: 3.984 kB / 434.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.1529, allocations: 15.44 kB / 434.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1529, allocations: 0 / 434.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.1712, allocations: 1.371 MB / 435.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.164, allocations: 25.78 kB / 435.8 MB, free: 11.47 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedSine/TimeBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.911938118049875]