Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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.001392/0.001392, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001436/0.001436, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001571/0.001571, allocations: 59.91 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2671, allocations: 53.35 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep): time 0.002852/0.27, allocations: 1.485 MB / 432.6 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001895/0.2702, allocations: 35.84 kB / 432.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.669e-05/0.2703, allocations: 0 / 432.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.762e-05/0.2703, allocations: 3.938 kB / 432.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.449e-05/0.2703, allocations: 3.938 kB / 432.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.2706, allocations: 15.98 kB / 432.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.2707, allocations: 35.86 kB / 432.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.252e-05/0.2708, allocations: 11.98 kB / 432.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.301e-05/0.2708, allocations: 11.98 kB / 432.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.83e-05/0.2709, allocations: 11.94 kB / 432.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.2709, allocations: 4 kB / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.696e-06/0.2709, allocations: 0 / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.2709, allocations: 11.94 kB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.695e-05/0.271, allocations: 11.92 kB / 432.8 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.628e-05/0.2711, allocations: 33.58 kB / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2711, allocations: 0 / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2711, allocations: 0 / 432.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2711, allocations: 4 kB / 432.8 MB, free: 5.16 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.0004418/0.2715, allocations: 270.2 kB / 433.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2716, allocations: 12.03 kB / 433.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.2716, allocations: 34.75 kB / 433.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.376e-05/0.2716, allocations: 8.891 kB / 433.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.2718, allocations: 114.5 kB / 433.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.2719, allocations: 12.31 kB / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.2719, allocations: 384 / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003513/0.2722, allocations: 127.8 kB / 433.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.2722, allocations: 3.938 kB / 433.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-06/0.2722, allocations: 0 / 433.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2722, allocations: 0 / 433.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.2724, allocations: 27.97 kB / 433.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.2725, allocations: 128.7 kB / 433.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.2727, allocations: 62.52 kB / 433.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.636e-05/0.2728, allocations: 24.89 kB / 433.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.2728, allocations: 0 / 433.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.2728, allocations: 38.55 kB / 433.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.42e-07/0.2728, allocations: 0 / 433.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002979/0.2731, allocations: 81.59 kB / 433.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.2732, allocations: 51.41 kB / 433.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.314e-05/0.2733, allocations: 113.8 kB / 433.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.2733, allocations: 25.7 kB / 433.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/0.2733, allocations: 92.12 kB / 434 MB, free: 3.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.386e-05/0.2734, allocations: 0 / 434 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.494e-05/0.2734, allocations: 17.72 kB / 434 MB, free: 3.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2736, allocations: 314.8 kB / 434.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.957e-05/0.2736, allocations: 11.98 kB / 434.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.94e-05/0.2736, allocations: 31.44 kB / 434.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.39e-05/0.2737, allocations: 35.38 kB / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2737, allocations: 0 / 434.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.747e-05/0.2738, allocations: 65.67 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2738, allocations: 7.938 kB / 434.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2738, allocations: 4.188 kB / 434.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2738, allocations: 0 / 434.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.555e-05/0.2739, allocations: 11.98 kB / 434.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.2739, allocations: 3.938 kB / 434.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/0.2739, allocations: 3.984 kB / 434.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.2739, allocations: 11.98 kB / 434.5 MB, free: 3.223 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: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.914e-05/0.274, allocations: 109.8 kB / 434.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.2742, allocations: 73.59 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.2742, allocations: 4 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2742, allocations: 4 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2742, allocations: 0 / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2742, allocations: 0 / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.2743, allocations: 128.7 kB / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2743, allocations: 0 / 434.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.195e-05/0.2744, allocations: 15.92 kB / 434.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2744, allocations: 3.938 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.2744, allocations: 4.375 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2744, allocations: 3.938 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2744, allocations: 8 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001775/0.2746, allocations: 89.11 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.398e-06/0.2746, allocations: 3.953 kB / 435 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.2746, allocations: 3.938 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.264e-05/0.2746, allocations: 7.984 kB / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-06/0.2746, allocations: 0 / 435 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.2746, allocations: 4 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.522e-05/0.2747, allocations: 91.22 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2747, allocations: 0 / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001848/0.2749, allocations: 4 kB / 435.1 MB, free: 2.59 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: 1 (step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0006097/0.2755, allocations: 0.6475 MB / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.2756, allocations: 32.16 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2756, allocations: 4.062 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.2756, allocations: 0 / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.2759, allocations: 26.94 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.2771, allocations: 1.174 MB / 437 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.2774, allocations: 0.6845 MB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.09e-05/0.2774, allocations: 0 / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.2775, allocations: 19.42 kB / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2775, allocations: 0 / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.3056, allocations: 1.511 MB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.12, allocations: 7.938 kB / 439.2 MB, free: 14.47 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedStep.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: 13.670672797132283]