Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.001683/0.001683, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002151/0.002151, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 7.969 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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 39.94 kB / 378.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2456, allocations: 53.36 MB / 431.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002807/0.2484, allocations: 1.46 MB / 433.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003038/0.2487, allocations: 95.67 kB / 433.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.445e-05/0.2488, allocations: 3.938 kB / 433.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.473e-05/0.2488, allocations: 0 / 433.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.033e-05/0.2488, allocations: 7.938 kB / 433.4 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002976/0.2491, allocations: 27.91 kB / 433.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.901e-05/0.2492, allocations: 23.92 kB / 433.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.2493, allocations: 4 kB / 433.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.76e-05/0.2494, allocations: 11.94 kB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.2494, allocations: 19.92 kB / 433.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.2494, allocations: 0 / 433.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.173e-05/0.2495, allocations: 4 kB / 433.5 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.152e-05/0.2495, allocations: 3.984 kB / 433.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.2495, allocations: 11.94 kB / 433.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.837e-05/0.2496, allocations: 29.95 kB / 433.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2496, allocations: 0 / 433.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2496, allocations: 0 / 433.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2496, allocations: 0 / 433.5 MB, free: 4.949 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.0004776/0.2501, allocations: 270.3 kB / 433.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.2502, allocations: 12.03 kB / 433.8 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.385e-05/0.2502, allocations: 4.188 kB / 433.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.892e-05/0.2502, allocations: 34.75 kB / 433.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.2502, allocations: 4.891 kB / 433.9 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.2505, allocations: 126.4 kB / 434 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.2505, allocations: 384 / 434 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.2505, allocations: 4.375 kB / 434 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003445/0.2508, allocations: 123.6 kB / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.2508, allocations: 0 / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.2508, allocations: 0 / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2509, allocations: 0 / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.352e-05/0.2509, allocations: 19.98 kB / 434.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.2511, allocations: 128.7 kB / 434.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.2512, allocations: 50.5 kB / 434.3 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.525e-05/0.2513, allocations: 24.92 kB / 434.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.51e-05/0.2514, allocations: 4 kB / 434.3 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.2514, allocations: 34.5 kB / 434.4 MB, free: 3.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 2.535e-06/0.2514, allocations: 0 / 434.4 MB, free: 3.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003071/0.2517, allocations: 69.66 kB / 434.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.2518, allocations: 59.34 kB / 434.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.964e-05/0.2519, allocations: 105.8 kB / 434.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.2519, allocations: 29.64 kB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.2519, allocations: 84.14 kB / 434.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-06/0.2519, allocations: 0 / 434.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.252, allocations: 17.72 kB / 434.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.2521, allocations: 322.8 kB / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.157e-05/0.2521, allocations: 0 / 435 MB, free: 3.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.696e-05/0.2522, allocations: 31.44 kB / 435.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.657e-05/0.2522, allocations: 35.31 kB / 435.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.2522, allocations: 4 kB / 435.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.58e-05/0.2523, allocations: 57.67 kB / 435.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2523, allocations: 11.94 kB / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2523, allocations: 0 / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2524, allocations: 0 / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.602e-05/0.2524, allocations: 11.94 kB / 435.2 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.964e-06/0.2524, allocations: 3.984 kB / 435.2 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.471e-05/0.2524, allocations: 4.25 kB / 435.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-06/0.2524, allocations: 0 / 435.2 MB, free: 3.07 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.497e-05/0.2525, allocations: 117.8 kB / 435.3 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.2527, allocations: 53.62 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.2527, allocations: 16.03 kB / 435.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.2527, allocations: 3.984 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.2527, allocations: 0 / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.2527, allocations: 0 / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.2528, allocations: 121.1 kB / 435.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2528, allocations: 3.984 kB / 435.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.681e-05/0.2529, allocations: 11.94 kB / 435.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2529, allocations: 3.938 kB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.2529, allocations: 0 / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2529, allocations: 0 / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2529, allocations: 4 kB / 435.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001495/0.253, allocations: 93.05 kB / 435.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.253, allocations: 7.875 kB / 435.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.2531, allocations: 0 / 435.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.637e-05/0.2531, allocations: 4 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-06/0.2531, allocations: 3.984 kB / 435.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.2531, allocations: 0 / 435.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.164e-05/0.2531, allocations: 87.28 kB / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2531, allocations: 0 / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001819/0.2533, allocations: 0 / 435.7 MB, free: 2.465 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.0004944/0.2538, allocations: 0.6358 MB / 436.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001237/0.2539, allocations: 27.86 kB / 436.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2539, allocations: 4 kB / 436.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.2539, allocations: 0 / 436.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.2542, allocations: 23.95 kB / 436.4 MB, free: 1.746 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.2554, allocations: 1.15 MB / 437.6 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.515e-05/0.2554, allocations: 71.28 kB / 437.6 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.372e-05/0.2555, allocations: 0 / 437.6 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.2555, allocations: 11.44 kB / 437.6 MB, free: 404 kB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2555, allocations: 0 / 437.6 MB, free: 404 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02117/0.2767, allocations: 1.422 MB / 439.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.67, allocations: 4.062 kB / 439.1 MB, free: 15.12 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.038141894969158]