Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001225/0.001225, allocations: 103.9 kB / 21.21 MB, free: 0.6289 MB / 14.72 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.00129/0.00129, allocations: 188.8 kB / 24.49 MB, free: 3.941 MB / 14.72 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 1.341/1.341, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 43.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2619, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002618/0.2645, allocations: 1.447 MB / 424.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002937/0.2648, allocations: 99.67 kB / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.226e-05/0.2648, allocations: 0 / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.39e-05/0.2649, allocations: 3.938 kB / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.576e-05/0.2649, allocations: 0 / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.2651, allocations: 27.91 kB / 424.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.198e-05/0.2652, allocations: 27.92 kB / 424.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.897e-05/0.2653, allocations: 8 kB / 425 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.045e-05/0.2653, allocations: 11.94 kB / 425 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.887e-05/0.2654, allocations: 11.92 kB / 425 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.645e-05/0.2654, allocations: 4 kB / 425 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.626e-06/0.2654, allocations: 0 / 425 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.2654, allocations: 4 kB / 425 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.2655, allocations: 15.92 kB / 425 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.445e-05/0.2656, allocations: 25.95 kB / 425 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2656, allocations: 0 / 425 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.2656, allocations: 4 kB / 425 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.2656, allocations: 0 / 425 MB, free: 12.7 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.0004631/0.266, allocations: 278.2 kB / 425.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.2661, allocations: 12.03 kB / 425.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.537e-05/0.2661, allocations: 192 / 425.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.26e-05/0.2661, allocations: 30.75 kB / 425.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.81e-05/0.2661, allocations: 12.88 kB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.2663, allocations: 118.4 kB / 425.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2663, allocations: 8.312 kB / 425.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.2664, allocations: 4.375 kB / 425.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.2667, allocations: 115.6 kB / 425.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2667, allocations: 0 / 425.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.433e-06/0.2667, allocations: 0 / 425.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2667, allocations: 4 kB / 425.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.825e-05/0.2668, allocations: 19.97 kB / 425.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.2669, allocations: 128.8 kB / 425.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.2671, allocations: 58.53 kB / 425.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.757e-05/0.2671, allocations: 20.89 kB / 425.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.2671, allocations: 0 / 425.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.2672, allocations: 38.5 kB / 425.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.2672, allocations: 0 / 425.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000221/0.2674, allocations: 77.55 kB / 425.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.2674, allocations: 51.41 kB / 426 MB, free: 11.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.84e-05/0.2675, allocations: 101.9 kB / 426.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.2675, allocations: 29.7 kB / 426.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.2676, allocations: 92.12 kB / 426.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-06/0.2676, allocations: 0 / 426.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.2676, allocations: 17.72 kB / 426.2 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.2678, allocations: 310.8 kB / 426.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.505e-05/0.2678, allocations: 11.98 kB / 426.5 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.486e-05/0.2678, allocations: 23.44 kB / 426.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.664e-05/0.2678, allocations: 35.38 kB / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.2679, allocations: 0 / 426.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.617e-05/0.2679, allocations: 61.56 kB / 426.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.2679, allocations: 7.938 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2679, allocations: 4 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.268, allocations: 0 / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.3e-05/0.268, allocations: 11.94 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.268, allocations: 0 / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.998e-05/0.268, allocations: 3.984 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.268, allocations: 4 kB / 426.7 MB, free: 10.82 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: 3 (assignClock1.y,assignClock1.u,step.y) * 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 9.324e-05/0.2681, allocations: 118 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2682, allocations: 61.58 kB / 426.9 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.2683, allocations: 4 kB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2683, allocations: 4 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.2683, allocations: 3.984 kB / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2683, allocations: 0 / 426.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.2684, allocations: 124.7 kB / 427 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2684, allocations: 0 / 427 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.2685, allocations: 11.98 kB / 427 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.2685, allocations: 7.875 kB / 427 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.2685, allocations: 4 kB / 427 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2685, allocations: 0 / 427 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2685, allocations: 256 / 427 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.2686, allocations: 81.44 kB / 427.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.735e-05/0.2686, allocations: 15.88 kB / 427.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.2686, allocations: 7.984 kB / 427.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.441e-05/0.2687, allocations: 4 kB / 427.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-06/0.2687, allocations: 0 / 427.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.2687, allocations: 7.984 kB / 427.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.328e-05/0.2687, allocations: 79.28 kB / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2687, allocations: 4 kB / 427.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001792/0.2689, allocations: 4 kB / 427.2 MB, free: 10.2 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: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0004822/0.2694, allocations: 0.628 MB / 427.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000101/0.2695, allocations: 23.92 kB / 427.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2695, allocations: 0 / 427.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.2695, allocations: 0 / 427.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.2697, allocations: 24.22 kB / 427.9 MB, free: 9.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2708, allocations: 1.162 MB / 429.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.513e-05/0.2708, allocations: 67.2 kB / 429.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.262e-05/0.2708, allocations: 0 / 429.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.588e-05/0.2709, allocations: 11.44 kB / 429.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2709, allocations: 4 kB / 429.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.2926, allocations: 1.402 MB / 430.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.88, allocations: 13.16 kB / 430.6 MB, free: 6.879 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 13.219682803959586]