Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 47.92 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2308, allocations: 53.37 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002654/0.2334, allocations: 1.51 MB / 433.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007809/0.2342, allocations: 494.7 kB / 433.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.618e-05/0.2342, allocations: 0 / 433.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.885e-05/0.2343, allocations: 7.922 kB / 433.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.2343, allocations: 3.938 kB / 433.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.2346, allocations: 31.91 kB / 434 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.541e-05/0.2347, allocations: 31.86 kB / 434 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.678e-05/0.2347, allocations: 19.97 kB / 434 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2349, allocations: 31.86 kB / 434.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.276e-05/0.2349, allocations: 11.94 kB / 434.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.2349, allocations: 4 kB / 434.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.091e-05/0.235, allocations: 4 kB / 434.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.992e-05/0.235, allocations: 11.92 kB / 434.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.019e-05/0.235, allocations: 19.86 kB / 434.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.2351, allocations: 44.61 kB / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2351, allocations: 0 / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2351, allocations: 0 / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.2351, allocations: 0 / 434.1 MB, free: 4.613 MB / 334.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.0004035/0.2355, allocations: 282.2 kB / 434.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.2356, allocations: 12.03 kB / 434.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.128e-05/0.2356, allocations: 192 / 434.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.7e-05/0.2356, allocations: 30.75 kB / 434.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2357, allocations: 16.92 kB / 434.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.2359, allocations: 134.4 kB / 434.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.2359, allocations: 4.375 kB / 434.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.2359, allocations: 4.375 kB / 434.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.2362, allocations: 111.2 kB / 434.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.2362, allocations: 0 / 434.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2362, allocations: 8 kB / 434.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.2363, allocations: 0 / 434.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.736e-05/0.2363, allocations: 19.98 kB / 434.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001255/0.2365, allocations: 132.7 kB / 434.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.2366, allocations: 58.48 kB / 434.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.627e-05/0.2367, allocations: 16.89 kB / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.2367, allocations: 7.938 kB / 435 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.2367, allocations: 46.53 kB / 435 MB, free: 3.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2367, allocations: 0 / 435 MB, free: 3.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002165/0.2369, allocations: 77.56 kB / 435.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.237, allocations: 51.41 kB / 435.1 MB, free: 3.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.2371, allocations: 113.8 kB / 435.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.2371, allocations: 25.7 kB / 435.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/0.2371, allocations: 84.52 kB / 435.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.931e-06/0.2371, allocations: 0 / 435.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.197e-05/0.2372, allocations: 25.7 kB / 435.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2373, allocations: 314.8 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.458e-06/0.2373, allocations: 3.938 kB / 435.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.141e-05/0.2373, allocations: 31.42 kB / 435.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.086e-05/0.2374, allocations: 43.38 kB / 435.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2374, allocations: 0 / 435.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.101e-05/0.2375, allocations: 65.45 kB / 435.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.2375, allocations: 4 kB / 435.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2375, allocations: 4 kB / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.2375, allocations: 0 / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.35e-05/0.2376, allocations: 4 kB / 435.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2376, allocations: 8.125 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.2376, allocations: 0 / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.2376, allocations: 4 kB / 435.9 MB, free: 2.684 MB / 334.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 7.923e-05/0.2377, allocations: 113.8 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.2378, allocations: 69.83 kB / 436 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.814e-05/0.2378, allocations: 8 kB / 436 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.2378, allocations: 48 / 436 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2378, allocations: 3.984 kB / 436 MB, free: 2.469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2378, allocations: 4 kB / 436.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000103/0.2379, allocations: 132.7 kB / 436.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.2379, allocations: 3.938 kB / 436.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.745e-05/0.238, allocations: 11.98 kB / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.238, allocations: 0 / 436.2 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.238, allocations: 4 kB / 436.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.238, allocations: 4 kB / 436.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.238, allocations: 0 / 436.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.2381, allocations: 93.05 kB / 436.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.2382, allocations: 11.89 kB / 436.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.2382, allocations: 0 / 436.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.416e-05/0.2382, allocations: 7.984 kB / 436.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-06/0.2382, allocations: 4 kB / 436.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.2382, allocations: 3.938 kB / 436.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.047e-05/0.2383, allocations: 83.28 kB / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2383, allocations: 0 / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001786/0.2385, allocations: 8.281 kB / 436.4 MB, free: 2.043 MB / 334.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.000422/0.2389, allocations: 0.6241 MB / 437 MB, free: 1.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.239, allocations: 31.92 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.239, allocations: 0 / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.31e-07/0.239, allocations: 256 / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.2392, allocations: 29.66 kB / 437.1 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009957/0.2402, allocations: 1.183 MB / 438.3 MB, free: 56 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.2405, allocations: 0.6846 MB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.355e-05/0.2405, allocations: 3.984 kB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.103e-05/0.2406, allocations: 15.44 kB / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2406, allocations: 0 / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2611, allocations: 1.474 MB / 440.5 MB, free: 14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.7, allocations: 14.06 kB / 440.5 MB, free: 13.99 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 13.016299355018418]