Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000933/0.000933, allocations: 88.05 kB / 20.67 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 145.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8883/0.8883, allocations: 173.4 MB / 200.5 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.135e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002383/0.002405, allocations: 1.543 MB / 320 MB, free: 4.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000337/0.002742, allocations: 143.4 kB / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.521e-05/0.002817, allocations: 0 / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.292e-05/0.00286, allocations: 7.875 kB / 320.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000127/0.002987, allocations: 7.938 kB / 320.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.0032, allocations: 39.83 kB / 320.2 MB, free: 4.602 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.911e-05/0.00329, allocations: 31.92 kB / 320.2 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.465e-05/0.003384, allocations: 23.89 kB / 320.2 MB, free: 4.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.287e-05/0.003427, allocations: 15.92 kB / 320.3 MB, free: 4.531 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.595e-05/0.003463, allocations: 8 kB / 320.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/0.003486, allocations: 4 kB / 320.3 MB, free: 4.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.708e-06/0.003496, allocations: 4 kB / 320.3 MB, free: 4.516 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.013e-05/0.003546, allocations: 15.92 kB / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.003576, allocations: 11.94 kB / 320.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.003679, allocations: 39.88 kB / 320.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.003682, allocations: 0 / 320.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.003685, allocations: 3.984 kB / 320.3 MB, free: 4.445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.00369, allocations: 0 / 320.3 MB, free: 4.445 MB / 282.7 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.0003753/0.004065, allocations: 297.3 kB / 320.6 MB, free: 4.125 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.004104, allocations: 8.922 kB / 320.6 MB, free: 4.117 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.081e-05/0.004134, allocations: 46.75 kB / 320.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.478e-05/0.004159, allocations: 12.88 kB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.004351, allocations: 129.7 kB / 320.8 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.004359, allocations: 4.375 kB / 320.8 MB, free: 3.895 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.004368, allocations: 4.375 kB / 320.8 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.004597, allocations: 117.5 kB / 320.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.004605, allocations: 4.188 kB / 321 MB, free: 3.754 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.004615, allocations: 8.359 kB / 321 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.00462, allocations: 4.125 kB / 321 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.111e-05/0.004662, allocations: 15.98 kB / 321 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002529/0.004915, allocations: 224.9 kB / 321.2 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.005057, allocations: 57.14 kB / 321.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.04e-05/0.005098, allocations: 29.77 kB / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.005117, allocations: 0 / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.005141, allocations: 50.44 kB / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.005142, allocations: 0 / 321.3 MB, free: 3.293 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001878/0.00533, allocations: 77.56 kB / 321.4 MB, free: 3.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.005374, allocations: 81.05 kB / 321.5 MB, free: 3.113 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.86e-05/0.005463, allocations: 137.5 kB / 321.6 MB, free: 2.969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.267e-06/0.005472, allocations: 29.64 kB / 321.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.005512, allocations: 88.12 kB / 321.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.085e-05/0.005523, allocations: 0 / 321.7 MB, free: 2.844 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.005548, allocations: 17.67 kB / 321.8 MB, free: 2.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.005618, allocations: 319 kB / 322.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.911e-05/0.005637, allocations: 7.984 kB / 322.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.322e-05/0.005651, allocations: 4 kB / 322.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.237e-05/0.005683, allocations: 16.84 kB / 322.1 MB, free: 2.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.005685, allocations: 4 kB / 322.1 MB, free: 2.465 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.326e-05/0.005738, allocations: 49.56 kB / 322.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.005749, allocations: 8 kB / 322.2 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.005753, allocations: 4.094 kB / 322.2 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.005763, allocations: 0 / 322.2 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.012e-05/0.005793, allocations: 4 kB / 322.2 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.005797, allocations: 0 / 322.2 MB, free: 2.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.365e-05/0.005811, allocations: 7.922 kB / 322.2 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.005816, allocations: 0 / 322.2 MB, free: 2.387 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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 6.122e-05/0.005877, allocations: 117.8 kB / 322.3 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.005921, allocations: 53.58 kB / 322.3 MB, free: 2.203 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.005945, allocations: 8.344 kB / 322.3 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.005947, allocations: 0 / 322.3 MB, free: 2.188 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.00595, allocations: 8 kB / 322.4 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.005953, allocations: 240 / 322.4 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.006053, allocations: 132.7 kB / 322.5 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.006054, allocations: 0 / 322.5 MB, free: 2.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.543e-05/0.006079, allocations: 11.94 kB / 322.5 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.006083, allocations: 7.922 kB / 322.5 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.006089, allocations: 4 kB / 322.5 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.006091, allocations: 4 kB / 322.5 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006092, allocations: 0 / 322.5 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.376e-05/0.006185, allocations: 164.3 kB / 322.7 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.537e-05/0.006211, allocations: 23.88 kB / 322.7 MB, free: 1.777 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.688e-06/0.006221, allocations: 4 kB / 322.7 MB, free: 1.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.894e-05/0.006249, allocations: 3.938 kB / 322.7 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.006273, allocations: 3.984 kB / 322.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.006276, allocations: 4 kB / 322.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.006318, allocations: 103.3 kB / 322.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006318, allocations: 0 / 322.8 MB, free: 1.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001409/0.006459, allocations: 7.938 kB / 322.8 MB, free: 1.652 MB / 282.7 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.0002729/0.006732, allocations: 0.6976 MB / 323.5 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.06e-05/0.006823, allocations: 23.92 kB / 323.5 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.006824, allocations: 0 / 323.5 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.811e-05/0.006842, allocations: 15.92 kB / 323.6 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.007089, allocations: 23.02 kB / 323.6 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007782/0.007867, allocations: 1.251 MB / 324.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.951e-05/0.007917, allocations: 75.48 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.952e-05/0.007936, allocations: 4 kB / 324.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.534e-05/0.007971, allocations: 12.5 kB / 324.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.007972, allocations: 0 / 324.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01403/0.02201, allocations: 2.133 MB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.844/6.866, allocations: 3.984 kB / 327.1 MB, free: 13.41 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.560690114274621]