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.001228/0.001228, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001296/0.001296, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.368/1.368, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001468/0.001468, allocations: 43.94 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2702, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002686/0.2728, allocations: 1.451 MB / 424.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002892/0.2731, allocations: 103.7 kB / 425 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.145e-05/0.2732, allocations: 0 / 425 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.739e-05/0.2732, allocations: 0 / 425 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.859e-05/0.2733, allocations: 3.938 kB / 425 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002352/0.2735, allocations: 23.91 kB / 425 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.838e-05/0.2736, allocations: 27.92 kB / 425 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.2737, allocations: 4 kB / 425 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.42e-05/0.2737, allocations: 15.94 kB / 425 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.37e-05/0.2738, allocations: 7.922 kB / 425 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.2738, allocations: 8 kB / 425.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-06/0.2738, allocations: 0 / 425.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.2738, allocations: 11.94 kB / 425.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.2738, allocations: 11.94 kB / 425.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.959e-05/0.2739, allocations: 25.02 kB / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2739, allocations: 0 / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2739, allocations: 0 / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.2739, allocations: 0 / 425.1 MB, free: 12.93 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.0004223/0.2744, allocations: 278 kB / 425.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.2744, allocations: 8.031 kB / 425.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.2744, allocations: 8.188 kB / 425.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.2745, allocations: 34.75 kB / 425.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.2745, allocations: 0.9375 kB / 425.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.2747, allocations: 130.4 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.335e-06/0.2747, allocations: 384 / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.2747, allocations: 8.312 kB / 425.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.275, allocations: 119.6 kB / 425.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.275, allocations: 0 / 425.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.275, allocations: 0 / 425.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.275, allocations: 0 / 425.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.572e-05/0.2751, allocations: 23.92 kB / 425.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001409/0.2752, allocations: 124.8 kB / 425.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.2754, allocations: 58.48 kB / 425.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.2755, allocations: 24.92 kB / 425.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.2755, allocations: 0 / 425.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.2755, allocations: 34.5 kB / 425.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.82e-07/0.2755, allocations: 0 / 425.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000222/0.2757, allocations: 73.81 kB / 426 MB, free: 11.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.2758, allocations: 63.33 kB / 426.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.135e-05/0.2759, allocations: 101.8 kB / 426.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.2759, allocations: 29.7 kB / 426.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.327e-05/0.2759, allocations: 84.14 kB / 426.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.152e-06/0.2759, allocations: 0 / 426.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.439e-05/0.276, allocations: 21.7 kB / 426.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2761, allocations: 310.8 kB / 426.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.393e-05/0.2761, allocations: 12 kB / 426.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.012e-05/0.2762, allocations: 27.42 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.093e-05/0.2762, allocations: 35.38 kB / 426.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2762, allocations: 4 kB / 426.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.661e-05/0.2763, allocations: 49.64 kB / 426.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2763, allocations: 11.92 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2763, allocations: 0 / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2763, allocations: 4 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.699e-05/0.2764, allocations: 7.938 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.2764, allocations: 0 / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.2764, allocations: 4 kB / 426.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-06/0.2764, allocations: 0 / 426.8 MB, free: 11.05 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.52e-05/0.2765, allocations: 118 kB / 426.9 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.2766, allocations: 65.56 kB / 426.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.2767, allocations: 8 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2767, allocations: 0 / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2767, allocations: 256 / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2767, allocations: 0 / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.2768, allocations: 128.8 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.2768, allocations: 0 / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.328e-05/0.2768, allocations: 19.92 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.2768, allocations: 7.875 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.2768, allocations: 3.938 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.2768, allocations: 0 / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2768, allocations: 4 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.277, allocations: 81.11 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.261e-05/0.277, allocations: 11.83 kB / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.277, allocations: 0 / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.616e-05/0.277, allocations: 12 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-06/0.277, allocations: 0 / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.2771, allocations: 3.984 kB / 427.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.318e-05/0.2771, allocations: 79.28 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2771, allocations: 0 / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001858/0.2773, allocations: 8 kB / 427.3 MB, free: 10.42 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.0004657/0.2778, allocations: 0.6241 MB / 427.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001072/0.2779, allocations: 27.92 kB / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2779, allocations: 0 / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.2779, allocations: 0 / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.2781, allocations: 23.97 kB / 428 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.2791, allocations: 1.158 MB / 429.1 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.2794, allocations: 0.6844 MB / 429.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.299e-05/0.2794, allocations: 0 / 429.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.2795, allocations: 15.42 kB / 429.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2795, allocations: 4 kB / 429.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.3002, allocations: 1.375 MB / 431.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.62, allocations: 18.69 kB / 431.2 MB, free: 6.492 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: 12.980187582958024]