Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.001331/0.001331, 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.001489/0.001489, 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.403/1.403, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 43.92 kB / 378.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2533, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002926/0.2562, allocations: 1.59 MB / 433.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2572, allocations: 0.5453 MB / 434.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.643e-05/0.2573, allocations: 3.938 kB / 434.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.969e-05/0.2574, allocations: 3.938 kB / 434.1 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.2575, allocations: 11.88 kB / 434.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.2578, allocations: 51.88 kB / 434.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.2579, allocations: 35.86 kB / 434.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.2581, allocations: 12 kB / 434.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.2582, allocations: 35.84 kB / 434.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.53e-05/0.2583, allocations: 19.86 kB / 434.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.2583, allocations: 0 / 434.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.292e-05/0.2583, allocations: 8 kB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.2584, allocations: 15.92 kB / 434.3 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.377e-05/0.2584, allocations: 19.88 kB / 434.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.2586, allocations: 52.53 kB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2586, allocations: 7.938 kB / 434.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2586, allocations: 0 / 434.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.2586, allocations: 0 / 434.3 MB, free: 4.469 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004437/0.259, allocations: 298 kB / 434.6 MB, free: 4.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.259, allocations: 8.031 kB / 434.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.898e-05/0.2591, allocations: 4.188 kB / 434.6 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.91e-05/0.2591, allocations: 30.75 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.2592, allocations: 16.88 kB / 434.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.2595, allocations: 144.7 kB / 434.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.2595, allocations: 4.375 kB / 434.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.2595, allocations: 8.375 kB / 434.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.2597, allocations: 88.98 kB / 434.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2597, allocations: 0 / 434.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2597, allocations: 3.984 kB / 434.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2597, allocations: 4 kB / 434.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.118e-05/0.2598, allocations: 19.98 kB / 435 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003005/0.2601, allocations: 236.7 kB / 435.2 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.08e-05/0.2602, allocations: 45.14 kB / 435.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.894e-05/0.2603, allocations: 21.78 kB / 435.2 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.2603, allocations: 3.984 kB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.2603, allocations: 38.5 kB / 435.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2603, allocations: 0 / 435.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002316/0.2605, allocations: 65.62 kB / 435.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.2606, allocations: 89.3 kB / 435.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.2607, allocations: 138.1 kB / 435.6 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.2607, allocations: 25.7 kB / 435.6 MB, free: 3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.229e-05/0.2608, allocations: 88.14 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.367e-05/0.2608, allocations: 0 / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.2609, allocations: 25.66 kB / 435.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.261, allocations: 314.8 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.187e-05/0.261, allocations: 11.98 kB / 436 MB, free: 2.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-05/0.2611, allocations: 21.72 kB / 436.1 MB, free: 2.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.123e-05/0.2612, allocations: 29.64 kB / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2612, allocations: 0 / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001121/0.2613, allocations: 53.78 kB / 436.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.2613, allocations: 8.031 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.2613, allocations: 3.984 kB / 436.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.2613, allocations: 0 / 436.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.518e-05/0.2614, allocations: 8 kB / 436.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.2614, allocations: 7.938 kB / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.16e-05/0.2614, allocations: 0 / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.2614, allocations: 0 / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 8.273e-05/0.2615, allocations: 129.7 kB / 436.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.436e-05/0.2616, allocations: 37.66 kB / 436.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.2616, allocations: 19.75 kB / 436.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.2616, allocations: 0 / 436.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2616, allocations: 4 kB / 436.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2616, allocations: 0 / 436.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.2618, allocations: 144.6 kB / 436.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2618, allocations: 0 / 436.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.2618, allocations: 4 kB / 436.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2618, allocations: 4 kB / 436.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.2618, allocations: 0 / 436.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2618, allocations: 3.938 kB / 436.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2618, allocations: 4.031 kB / 436.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.262, allocations: 168.2 kB / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.18e-05/0.262, allocations: 11.94 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.2621, allocations: 4 kB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.047e-05/0.2621, allocations: 0 / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.244e-05/0.2621, allocations: 4.031 kB / 436.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.2622, allocations: 4 kB / 436.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.309e-05/0.2622, allocations: 110.2 kB / 436.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2622, allocations: 0 / 436.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000209/0.2624, allocations: 8 kB / 436.8 MB, free: 1.68 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 (2): * Single equations (assignments): 2 * 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.0004463/0.2629, allocations: 0.6976 MB / 437.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.263, allocations: 19.98 kB / 437.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.263, allocations: 0 / 437.5 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.952e-05/0.263, allocations: 11.92 kB / 437.5 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.2633, allocations: 12.03 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.2646, allocations: 1.315 MB / 438.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.2649, allocations: 0.6885 MB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.029e-05/0.2649, allocations: 8.031 kB / 439.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.265, allocations: 15.44 kB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.265, allocations: 0 / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.285, allocations: 1.634 MB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.61, allocations: 13.11 kB / 441.2 MB, free: 13.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleClocked/SampleClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result: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.061122126004193]