Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001338/0.001338, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001477/0.001477, allocations: 213.1 kB / 23.74 MB, free: 4.656 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.505/1.505, allocations: 230.6 MB / 257.5 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.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 47.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3494, allocations: 53.35 MB / 431.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003602/0.353, allocations: 1.583 MB / 432.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004797/0.3535, allocations: 143.5 kB / 432.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.565e-05/0.3536, allocations: 3.938 kB / 432.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.962e-05/0.3536, allocations: 3.938 kB / 432.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.3537, allocations: 3.938 kB / 432.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.354, allocations: 43.02 kB / 432.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.3541, allocations: 39.86 kB / 433 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3542, allocations: 15.98 kB / 433 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.757e-05/0.3543, allocations: 15.92 kB / 433 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.81e-05/0.3544, allocations: 15.92 kB / 433 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/0.3544, allocations: 0 / 433 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.3544, allocations: 4 kB / 433 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.506e-05/0.3544, allocations: 11.88 kB / 433 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.586e-05/0.3545, allocations: 23.81 kB / 433 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.3546, allocations: 52.44 kB / 433.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3546, allocations: 0 / 433.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3546, allocations: 0 / 433.1 MB, free: 5.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.3546, allocations: 7.938 kB / 433.1 MB, free: 5.086 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.0004941/0.3551, allocations: 294.1 kB / 433.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3552, allocations: 12.03 kB / 433.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.461e-05/0.3552, allocations: 34.75 kB / 433.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.994e-05/0.3553, allocations: 8.891 kB / 433.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.3555, allocations: 130.4 kB / 433.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.3556, allocations: 384 / 433.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.3556, allocations: 12.31 kB / 433.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.3559, allocations: 113.5 kB / 433.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3559, allocations: 7.922 kB / 433.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.3559, allocations: 0 / 433.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3559, allocations: 0 / 433.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.651e-05/0.356, allocations: 23.98 kB / 433.7 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003612/0.3563, allocations: 232.8 kB / 433.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.3566, allocations: 57.14 kB / 434 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.631e-05/0.3566, allocations: 33.77 kB / 434 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.3566, allocations: 7.984 kB / 434 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.3567, allocations: 34.5 kB / 434.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3567, allocations: 0 / 434.1 MB, free: 3.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002739/0.3569, allocations: 81.55 kB / 434.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.357, allocations: 81.23 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.3572, allocations: 136.8 kB / 434.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.3572, allocations: 25.7 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.333e-05/0.3573, allocations: 88.12 kB / 434.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3573, allocations: 7.953 kB / 434.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.404e-05/0.3574, allocations: 21.7 kB / 434.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.3575, allocations: 310.8 kB / 434.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.84e-05/0.3576, allocations: 11.98 kB / 434.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.152e-05/0.3576, allocations: 31.44 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.3578, allocations: 43.36 kB / 434.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.3578, allocations: 7.938 kB / 434.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001489/0.3579, allocations: 73.55 kB / 435 MB, free: 2.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3579, allocations: 4 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3579, allocations: 0 / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3579, allocations: 7.938 kB / 435 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.453e-05/0.358, allocations: 8 kB / 435 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.358, allocations: 4 kB / 435 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.961e-05/0.3581, allocations: 12.06 kB / 435 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.3581, allocations: 4 kB / 435 MB, free: 2.91 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 0.0001207/0.3582, allocations: 117.8 kB / 435.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.639e-05/0.3583, allocations: 45.69 kB / 435.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.3583, allocations: 12.34 kB / 435.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3583, allocations: 3.938 kB / 435.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.3583, allocations: 3.938 kB / 435.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3583, allocations: 4 kB / 435.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.3586, allocations: 144.6 kB / 435.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3586, allocations: 0 / 435.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-05/0.3586, allocations: 15.98 kB / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3586, allocations: 0 / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.3586, allocations: 0 / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.3586, allocations: 4 kB / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3586, allocations: 0 / 435.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.3589, allocations: 160.3 kB / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.3589, allocations: 23.94 kB / 435.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.3589, allocations: 0 / 435.5 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.168e-05/0.359, allocations: 7.938 kB / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.359, allocations: 0 / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.359, allocations: 0 / 435.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.833e-05/0.3591, allocations: 111.2 kB / 435.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3591, allocations: 0 / 435.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.3593, allocations: 4 kB / 435.7 MB, free: 2.18 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.0006605/0.36, allocations: 0.698 MB / 436.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.3602, allocations: 31.92 kB / 436.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3602, allocations: 0 / 436.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.874e-05/0.3602, allocations: 12.23 kB / 436.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.3606, allocations: 24 kB / 436.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.3623, allocations: 1.33 MB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.3628, allocations: 0.6923 MB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.3628, allocations: 0 / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.232e-05/0.3629, allocations: 15.44 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3629, allocations: 0 / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.3962, allocations: 1.604 MB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 10.28 kB / 440.1 MB, free: 13.74 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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: 14.348146438132972]