Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.001588/0.001588, 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.001949/0.001949, 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.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 8.004 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.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 55.92 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2423, allocations: 53.35 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1): time 0.002815/0.2451, allocations: 1.606 MB / 433.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009689/0.2461, allocations: 0.5453 MB / 434.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.537e-05/0.2462, allocations: 3.938 kB / 434.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.22e-05/0.2462, allocations: 11.92 kB / 434.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.2463, allocations: 3.938 kB / 434.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.2466, allocations: 63.75 kB / 434.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.2467, allocations: 43.84 kB / 434.2 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.998e-05/0.2468, allocations: 11.98 kB / 434.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.2469, allocations: 31.88 kB / 434.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.611e-05/0.247, allocations: 19.86 kB / 434.3 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.247, allocations: 7.984 kB / 434.3 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.776e-05/0.2471, allocations: 11.98 kB / 434.3 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.2471, allocations: 11.94 kB / 434.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.715e-05/0.2471, allocations: 27.8 kB / 434.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.2473, allocations: 60.53 kB / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2473, allocations: 0 / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2473, allocations: 0 / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2473, allocations: 0 / 434.4 MB, free: 4.387 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004485/0.2477, allocations: 306 kB / 434.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2478, allocations: 8.031 kB / 434.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.728e-05/0.2478, allocations: 4.188 kB / 434.7 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.976e-05/0.2478, allocations: 34.75 kB / 434.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.248, allocations: 20.83 kB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.2482, allocations: 138.4 kB / 434.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2482, allocations: 4.375 kB / 434.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.2482, allocations: 8.375 kB / 434.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002796/0.2485, allocations: 117 kB / 435 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.2485, allocations: 0 / 435 MB, free: 3.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.2485, allocations: 8 kB / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2485, allocations: 0 / 435 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.267e-05/0.2486, allocations: 27.92 kB / 435 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002989/0.2489, allocations: 236.8 kB / 435.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.249, allocations: 57.14 kB / 435.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.391e-05/0.2491, allocations: 33.77 kB / 435.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.2491, allocations: 4 kB / 435.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.2492, allocations: 34.56 kB / 435.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.2492, allocations: 0 / 435.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000248/0.2494, allocations: 85.48 kB / 435.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.2495, allocations: 81.23 kB / 435.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.2496, allocations: 142.2 kB / 435.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2496, allocations: 25.7 kB / 435.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.2497, allocations: 92.06 kB / 435.8 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.2497, allocations: 7.953 kB / 435.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.2497, allocations: 17.72 kB / 435.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.2499, allocations: 318.8 kB / 436.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.444e-05/0.2499, allocations: 15.94 kB / 436.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.162e-05/0.25, allocations: 31.42 kB / 436.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.2501, allocations: 51.36 kB / 436.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2501, allocations: 4 kB / 436.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000136/0.2502, allocations: 69.56 kB / 436.3 MB, free: 2.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2502, allocations: 4 kB / 436.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.2502, allocations: 0 / 436.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.2502, allocations: 4 kB / 436.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.811e-05/0.2503, allocations: 8 kB / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.2503, allocations: 0 / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.302e-05/0.2503, allocations: 12.11 kB / 436.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.2504, allocations: 4 kB / 436.4 MB, free: 2.16 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 9.502e-05/0.2504, allocations: 121.7 kB / 436.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.366e-05/0.2505, allocations: 49.92 kB / 436.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.2506, allocations: 12.38 kB / 436.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.2506, allocations: 0 / 436.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2506, allocations: 4 kB / 436.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.2506, allocations: 0 / 436.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.2507, allocations: 144.7 kB / 436.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2507, allocations: 4 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.2508, allocations: 12 kB / 436.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.197e-06/0.2508, allocations: 4 kB / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.2508, allocations: 0 / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2508, allocations: 3.984 kB / 436.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2508, allocations: 0 / 436.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000189/0.251, allocations: 172.2 kB / 436.9 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.251, allocations: 19.95 kB / 436.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.251, allocations: 0 / 436.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.716e-05/0.2511, allocations: 11.92 kB / 436.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.732e-05/0.2511, allocations: 4 kB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.2511, allocations: 0 / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.882e-05/0.2512, allocations: 109.7 kB / 437 MB, free: 1.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2512, allocations: 0 / 437 MB, free: 1.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.2514, allocations: 12 kB / 437 MB, free: 1.406 MB / 334.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.000485/0.2519, allocations: 0.7053 MB / 437.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.2521, allocations: 31.92 kB / 437.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2521, allocations: 4.188 kB / 437.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.815e-05/0.2521, allocations: 15.98 kB / 437.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.2524, allocations: 16.02 kB / 437.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.2538, allocations: 1.373 MB / 439.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.2542, allocations: 0.6924 MB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.904e-05/0.2542, allocations: 0 / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.556e-05/0.2542, allocations: 19.44 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2542, allocations: 0 / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.2753, allocations: 1.737 MB / 441.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.63, allocations: 11.38 kB / 441.6 MB, free: 12.8 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 13.089783943025395]