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.001654/0.001654, allocations: 112.2 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.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.002215/0.002215, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.352/1.352, allocations: 230.6 MB / 258.3 MB, free: 8 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.001433/0.001433, allocations: 47.92 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2438, allocations: 53.36 MB / 431.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002462/0.2463, allocations: 1.453 MB / 433.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002561/0.2465, allocations: 95.69 kB / 433.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.119e-05/0.2466, allocations: 0 / 433.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.607e-05/0.2466, allocations: 7.938 kB / 433.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.527e-05/0.2466, allocations: 7.938 kB / 433.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.2469, allocations: 19.97 kB / 433.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.732e-05/0.2469, allocations: 27.92 kB / 433.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.273e-05/0.247, allocations: 7.938 kB / 433.5 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.957e-05/0.247, allocations: 15.97 kB / 433.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.819e-05/0.2471, allocations: 11.94 kB / 433.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.2471, allocations: 0 / 433.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.097e-06/0.2471, allocations: 4 kB / 433.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.535e-05/0.2471, allocations: 7.875 kB / 433.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.158e-05/0.2471, allocations: 19.86 kB / 433.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 7.817e-05/0.2472, allocations: 29.03 kB / 433.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2472, allocations: 4 kB / 433.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2472, allocations: 0 / 433.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2472, allocations: 0 / 433.6 MB, free: 5.121 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.000359/0.2476, allocations: 266 kB / 433.9 MB, free: 4.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.2476, allocations: 12.03 kB / 433.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.032e-05/0.2476, allocations: 192 / 433.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.266e-05/0.2477, allocations: 38.73 kB / 433.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.2477, allocations: 12.89 kB / 434 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.2479, allocations: 114.5 kB / 434.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2479, allocations: 12.38 kB / 434.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.2479, allocations: 4.312 kB / 434.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.2482, allocations: 111.5 kB / 434.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.2482, allocations: 4 kB / 434.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-06/0.2482, allocations: 0 / 434.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2482, allocations: 0 / 434.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.831e-05/0.2483, allocations: 19.98 kB / 434.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.2484, allocations: 128.7 kB / 434.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.2486, allocations: 50.55 kB / 434.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.355e-05/0.2486, allocations: 32.91 kB / 434.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.2487, allocations: 0 / 434.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.2487, allocations: 38.44 kB / 434.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.42e-07/0.2487, allocations: 0 / 434.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002008/0.2489, allocations: 69.67 kB / 434.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.2489, allocations: 59.39 kB / 434.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.115e-05/0.249, allocations: 105.9 kB / 434.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.249, allocations: 25.7 kB / 434.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.2491, allocations: 84.12 kB / 434.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.177e-06/0.2491, allocations: 4 kB / 434.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.2491, allocations: 13.72 kB / 434.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2492, allocations: 318.8 kB / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.2492, allocations: 3.984 kB / 435.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.37e-05/0.2493, allocations: 35.38 kB / 435.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.952e-05/0.2493, allocations: 27.44 kB / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.2493, allocations: 0 / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.004e-05/0.2494, allocations: 65.64 kB / 435.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2494, allocations: 11.94 kB / 435.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2494, allocations: 4 kB / 435.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.2494, allocations: 0 / 435.3 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.384e-05/0.2495, allocations: 4 kB / 435.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.2495, allocations: 7.938 kB / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.2495, allocations: 0 / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.2495, allocations: 4 kB / 435.3 MB, free: 3.246 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 7.918e-05/0.2496, allocations: 121.7 kB / 435.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.2497, allocations: 61.62 kB / 435.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.2497, allocations: 8 kB / 435.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2497, allocations: 0 / 435.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2497, allocations: 3.938 kB / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2497, allocations: 3.984 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.696e-05/0.2498, allocations: 128.8 kB / 435.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2498, allocations: 0 / 435.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.606e-05/0.2499, allocations: 4.25 kB / 435.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.2499, allocations: 3.938 kB / 435.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.2499, allocations: 8 kB / 435.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2499, allocations: 4 kB / 435.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2499, allocations: 3.984 kB / 435.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001521/0.2501, allocations: 85.02 kB / 435.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.022e-05/0.2501, allocations: 7.875 kB / 435.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.2501, allocations: 7.984 kB / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.228e-05/0.2501, allocations: 0 / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-06/0.2501, allocations: 0 / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.2501, allocations: 0 / 435.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.2502, allocations: 91.28 kB / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2502, allocations: 0 / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001777/0.2503, allocations: 4 kB / 435.8 MB, free: 2.625 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.000446/0.2508, allocations: 0.6283 MB / 436.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 9.91e-05/0.2509, allocations: 28.02 kB / 436.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2509, allocations: 0 / 436.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4e-07/0.2509, allocations: 0 / 436.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.2511, allocations: 19.94 kB / 436.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.2521, allocations: 1.154 MB / 437.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.2524, allocations: 0.6807 MB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.2e-05/0.2524, allocations: 0 / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.724e-05/0.2524, allocations: 15.44 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2524, allocations: 0 / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.2734, allocations: 1.385 MB / 439.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.44/10.71, allocations: 4.062 kB / 439.7 MB, free: 14.7 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.069698129023891]