Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001202/0.001202, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001314/0.001314, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.362/1.362, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 47.92 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2376, allocations: 53.37 MB / 431.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002796/0.2404, allocations: 1.451 MB / 433.3 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001785/0.2405, allocations: 27.92 kB / 433.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.912e-05/0.2406, allocations: 3.938 kB / 433.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.884e-05/0.2406, allocations: 3.984 kB / 433.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.424e-05/0.2407, allocations: 3.938 kB / 433.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.2409, allocations: 19.97 kB / 433.4 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.425e-05/0.241, allocations: 31.92 kB / 433.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.682e-05/0.2411, allocations: 8 kB / 433.4 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.38e-05/0.2411, allocations: 11.94 kB / 433.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.068e-05/0.2411, allocations: 19.91 kB / 433.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.2411, allocations: 4 kB / 433.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.206e-06/0.2412, allocations: 0 / 433.4 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.2412, allocations: 4 kB / 433.4 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.2412, allocations: 15.92 kB / 433.5 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.91e-05/0.2413, allocations: 29.95 kB / 433.5 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2413, allocations: 3.938 kB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2413, allocations: 0 / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.2413, allocations: 0 / 433.5 MB, free: 5.016 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.000395/0.2417, allocations: 282.2 kB / 433.8 MB, free: 4.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2417, allocations: 12.03 kB / 433.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.702e-05/0.2418, allocations: 192 / 433.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.379e-05/0.2418, allocations: 30.75 kB / 433.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.2418, allocations: 8.891 kB / 433.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001862/0.242, allocations: 122.5 kB / 433.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.652e-05/0.242, allocations: 384 / 433.9 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.242, allocations: 12.36 kB / 433.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.2424, allocations: 119.6 kB / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2424, allocations: 0 / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.2424, allocations: 4 kB / 434.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.2424, allocations: 4 kB / 434.1 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001081/0.2425, allocations: 23.91 kB / 434.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001333/0.2426, allocations: 128.7 kB / 434.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001542/0.2428, allocations: 50.56 kB / 434.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.717e-05/0.2429, allocations: 28.91 kB / 434.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.2429, allocations: 0 / 434.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.2429, allocations: 42.5 kB / 434.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.2429, allocations: 4 kB / 434.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002639/0.2432, allocations: 81.59 kB / 434.4 MB, free: 3.934 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.2432, allocations: 51.41 kB / 434.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.287e-05/0.2433, allocations: 106 kB / 434.6 MB, free: 3.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.2433, allocations: 25.7 kB / 434.6 MB, free: 3.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.011e-05/0.2434, allocations: 92.08 kB / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.2434, allocations: 0 / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.2434, allocations: 17.72 kB / 434.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2436, allocations: 314.8 kB / 435 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.701e-05/0.2436, allocations: 8 kB / 435 MB, free: 3.285 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.546e-05/0.2436, allocations: 35.5 kB / 435.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.25e-05/0.2437, allocations: 39.36 kB / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.2437, allocations: 0 / 435.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.97e-05/0.2438, allocations: 65.53 kB / 435.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2438, allocations: 11.92 kB / 435.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.2438, allocations: 128 / 435.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2438, allocations: 8 kB / 435.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.49e-05/0.2438, allocations: 4 kB / 435.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.2438, allocations: 4 kB / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.765e-05/0.2439, allocations: 0 / 435.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-06/0.2439, allocations: 4 kB / 435.2 MB, free: 3.086 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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * 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.442e-05/0.244, allocations: 117.8 kB / 435.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.2441, allocations: 73.5 kB / 435.4 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.454e-05/0.2441, allocations: 7.984 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2441, allocations: 4 kB / 435.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.2441, allocations: 0 / 435.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.2441, allocations: 4.234 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.37e-05/0.2442, allocations: 124.8 kB / 435.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2442, allocations: 0 / 435.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.743e-05/0.2443, allocations: 11.98 kB / 435.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2443, allocations: 3.938 kB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.2443, allocations: 0 / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2443, allocations: 0 / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2443, allocations: 0 / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001731/0.2445, allocations: 97.03 kB / 435.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.128e-05/0.2445, allocations: 11.83 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.2445, allocations: 8 kB / 435.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.142e-05/0.2445, allocations: 7.984 kB / 435.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-06/0.2445, allocations: 0 / 435.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.2445, allocations: 4 kB / 435.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.124e-05/0.2446, allocations: 83.41 kB / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2446, allocations: 0 / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001795/0.2448, allocations: 8 kB / 435.8 MB, free: 2.445 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: 4 (assignClock1.u,assignClock1.y,step.y,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.0005425/0.2453, allocations: 0.6398 MB / 436.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.2454, allocations: 36.11 kB / 436.4 MB, free: 1.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2454, allocations: 4.125 kB / 436.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2454, allocations: 0 / 436.4 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.2457, allocations: 27.95 kB / 436.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.2467, allocations: 1.177 MB / 437.6 MB, free: 448 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.638e-05/0.2468, allocations: 67.33 kB / 437.7 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.812e-05/0.2468, allocations: 0 / 437.7 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.625e-05/0.2468, allocations: 15.44 kB / 437.7 MB, free: 344 kB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2468, allocations: 4 kB / 437.7 MB, free: 340 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.2672, allocations: 1.561 MB / 439.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.64, allocations: 0 / 439.3 MB, free: 14.92 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time [Calling sys.exit(0), Time elapsed: 13.014149471069686]