Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001669/0.001669, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001553/0.001553, allocations: 210.6 kB / 23.73 MB, free: 4.387 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.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 39.94 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2693, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002364/0.2716, allocations: 0.8426 MB / 431.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003492/0.272, allocations: 115.6 kB / 432 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.147e-05/0.2721, allocations: 7.938 kB / 432 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.308e-05/0.2721, allocations: 11.92 kB / 432.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.2723, allocations: 11.94 kB / 432.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.2725, allocations: 39.83 kB / 432.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.2726, allocations: 35.92 kB / 432.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.2727, allocations: 23.92 kB / 432.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.2727, allocations: 19.91 kB / 432.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.54e-05/0.2728, allocations: 19.86 kB / 432.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.2728, allocations: 4 kB / 432.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.419e-05/0.2728, allocations: 4 kB / 432.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.2729, allocations: 19.86 kB / 432.2 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.2729, allocations: 23.88 kB / 432.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.273, allocations: 65.36 kB / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.273, allocations: 0 / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.273, allocations: 0 / 432.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.273, allocations: 0 / 432.3 MB, free: 5.422 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004894/0.2735, allocations: 306 kB / 432.6 MB, free: 5.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.2736, allocations: 8.031 kB / 432.6 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.8e-05/0.2736, allocations: 34.75 kB / 432.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.2736, allocations: 12.84 kB / 432.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.2739, allocations: 146.3 kB / 432.8 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.2739, allocations: 12.36 kB / 432.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.2739, allocations: 8.359 kB / 432.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.2742, allocations: 139.7 kB / 433 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.2742, allocations: 7.938 kB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.2742, allocations: 0 / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2742, allocations: 0 / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.2743, allocations: 23.92 kB / 433 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.2745, allocations: 140.8 kB / 433.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.2747, allocations: 70.7 kB / 433.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.101e-05/0.2747, allocations: 44.88 kB / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.2748, allocations: 0 / 433.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.2748, allocations: 38.5 kB / 433.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.2748, allocations: 0 / 433.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002116/0.275, allocations: 101.6 kB / 433.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.275, allocations: 51.41 kB / 433.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2752, allocations: 148.3 kB / 433.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.2752, allocations: 25.7 kB / 433.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.2752, allocations: 96.12 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.2753, allocations: 0 / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.2753, allocations: 25.72 kB / 433.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2754, allocations: 322.8 kB / 434 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.111e-05/0.2755, allocations: 4 kB / 434 MB, free: 3.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.694e-05/0.2755, allocations: 70.73 kB / 434.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.16e-05/0.2756, allocations: 78.73 kB / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2756, allocations: 0 / 434.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001876/0.2758, allocations: 93.45 kB / 434.3 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2758, allocations: 7.938 kB / 434.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2758, allocations: 4 kB / 434.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.2759, allocations: 4.25 kB / 434.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.182e-05/0.276, allocations: 19.92 kB / 434.3 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.276, allocations: 4 kB / 434.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.615e-05/0.276, allocations: 7.938 kB / 434.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.276, allocations: 8 kB / 434.3 MB, free: 3.152 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.0001291/0.2761, allocations: 129.8 kB / 434.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.2763, allocations: 89.67 kB / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.639e-05/0.2763, allocations: 8.719 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-06/0.2763, allocations: 7.984 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2763, allocations: 0 / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.2763, allocations: 4 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.2764, allocations: 132.8 kB / 434.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2764, allocations: 0 / 434.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.569e-05/0.2765, allocations: 15.98 kB / 434.7 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.2765, allocations: 3.938 kB / 434.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2765, allocations: 8 kB / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2765, allocations: 0 / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2765, allocations: 0 / 434.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.2766, allocations: 109.4 kB / 434.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.2767, allocations: 23.81 kB / 434.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.2767, allocations: 4 kB / 434.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.292e-05/0.2767, allocations: 8 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-06/0.2767, allocations: 0 / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.2767, allocations: 0 / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.361e-05/0.2768, allocations: 107.2 kB / 435 MB, free: 2.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2768, allocations: 0 / 435 MB, free: 2.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000192/0.277, allocations: 12 kB / 435 MB, free: 2.422 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0004952/0.2775, allocations: 0.6827 MB / 435.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.2776, allocations: 48.11 kB / 435.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2776, allocations: 3.938 kB / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.2776, allocations: 192 / 435.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.2779, allocations: 60.58 kB / 435.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.2792, allocations: 1.367 MB / 437.1 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.837e-05/0.2793, allocations: 79.7 kB / 437.2 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.455e-05/0.2793, allocations: 16.64 kB / 437.2 MB, free: 0 / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.2794, allocations: 15.52 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2794, allocations: 0 / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03031/0.3097, allocations: 2.381 MB / 439.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.3, allocations: 7.25 kB / 439.6 MB, free: 13.73 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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:time,previous(unitDelay1.u),assignClock1.u,assignClock1.y,const.y,sum.u[1] [Calling sys.exit(0), Time elapsed: 13.845228549093008]