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.00126/0.00126, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001442/0.001442, allocations: 208.5 kB / 23.73 MB, free: 4.387 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.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 7.789 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 47.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2605, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.002751/0.2632, allocations: 1.507 MB / 432.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008156/0.2641, allocations: 442.9 kB / 433 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.2641, allocations: 3.938 kB / 433 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.735e-05/0.2642, allocations: 3.984 kB / 433 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.58e-05/0.2642, allocations: 11.88 kB / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.2645, allocations: 31.91 kB / 433.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.2646, allocations: 39.86 kB / 433.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.011e-05/0.2647, allocations: 7.984 kB / 433.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2648, allocations: 31.84 kB / 433.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.382e-05/0.2649, allocations: 11.94 kB / 433.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.2649, allocations: 4 kB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.859e-05/0.2649, allocations: 8 kB / 433.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.2649, allocations: 7.984 kB / 433.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.157e-05/0.265, allocations: 15.88 kB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.2651, allocations: 45.48 kB / 433.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2651, allocations: 8 kB / 433.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2651, allocations: 0 / 433.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.2651, allocations: 0 / 433.3 MB, free: 4.484 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.0004199/0.2655, allocations: 278.2 kB / 433.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2656, allocations: 8.031 kB / 433.5 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.2656, allocations: 38.69 kB / 433.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.2657, allocations: 12.92 kB / 433.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.2659, allocations: 122.5 kB / 433.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.2659, allocations: 4.375 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.2659, allocations: 8.312 kB / 433.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.2663, allocations: 119.4 kB / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.2663, allocations: 0 / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.2663, allocations: 0 / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.2663, allocations: 0 / 433.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.196e-05/0.2664, allocations: 23.92 kB / 433.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000136/0.2665, allocations: 136.7 kB / 434 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.2667, allocations: 54.55 kB / 434 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.005e-05/0.2667, allocations: 28.86 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.2667, allocations: 0 / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.2668, allocations: 34.5 kB / 434.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.41e-07/0.2668, allocations: 0 / 434.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002266/0.267, allocations: 77.61 kB / 434.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.267, allocations: 55.41 kB / 434.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.832e-05/0.2671, allocations: 109.8 kB / 434.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.2671, allocations: 29.7 kB / 434.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.706e-05/0.2672, allocations: 88.12 kB / 434.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-06/0.2672, allocations: 0 / 434.5 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.2672, allocations: 17.72 kB / 434.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2673, allocations: 318.8 kB / 434.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.29e-05/0.2674, allocations: 3.984 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.929e-05/0.2674, allocations: 27.38 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.957e-05/0.2674, allocations: 39.44 kB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2674, allocations: 0 / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.375e-05/0.2675, allocations: 65.45 kB / 434.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2675, allocations: 8 kB / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2675, allocations: 0 / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.2676, allocations: 0 / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.948e-05/0.2676, allocations: 8 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.2676, allocations: 0 / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.067e-05/0.2676, allocations: 8.125 kB / 434.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-06/0.2676, allocations: 4 kB / 434.9 MB, free: 2.57 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.868e-05/0.2677, allocations: 117.8 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.2678, allocations: 65.56 kB / 435.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.207e-05/0.2679, allocations: 12.31 kB / 435.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.2679, allocations: 3.938 kB / 435.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2679, allocations: 4 kB / 435.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2679, allocations: 3.984 kB / 435.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.848e-05/0.268, allocations: 132.7 kB / 435.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.268, allocations: 0 / 435.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.712e-05/0.268, allocations: 16.31 kB / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.268, allocations: 0 / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.268, allocations: 0 / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.268, allocations: 3.984 kB / 435.3 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.268, allocations: 3.938 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.2682, allocations: 89.05 kB / 435.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.47e-05/0.2682, allocations: 11.89 kB / 435.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.2682, allocations: 4 kB / 435.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.307e-05/0.2683, allocations: 0 / 435.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.605e-06/0.2683, allocations: 0 / 435.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-06/0.2683, allocations: 8 kB / 435.4 MB, free: 2.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.326e-05/0.2683, allocations: 87.27 kB / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2683, allocations: 0 / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000193/0.2685, allocations: 4 kB / 435.5 MB, free: 1.93 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.0004224/0.2689, allocations: 0.6241 MB / 436.1 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.269, allocations: 23.98 kB / 436.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.269, allocations: 0 / 436.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.269, allocations: 4.25 kB / 436.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.2693, allocations: 30.44 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.2703, allocations: 1.187 MB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.707e-05/0.2703, allocations: 67.34 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.166e-05/0.2703, allocations: 0 / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.2704, allocations: 11.44 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2704, allocations: 4 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.2973, allocations: 1.856 MB / 439.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.58, allocations: 8.062 kB / 439.3 MB, free: 14.11 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: 12.90506787900813]