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.001895/0.001895, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002359/0.002359, allocations: 214.7 kB / 23.75 MB, free: 4.668 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.565/1.565, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001539/0.001539, allocations: 51.91 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2713, allocations: 53.37 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002577/0.2739, allocations: 0.8595 MB / 432 MB, free: 5.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003933/0.2743, allocations: 123.6 kB / 432.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.209e-05/0.2744, allocations: 4 kB / 432.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.839e-05/0.2745, allocations: 11.86 kB / 432.1 MB, free: 5.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.2746, allocations: 3.938 kB / 432.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2749, allocations: 39.89 kB / 432.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.275, allocations: 39.86 kB / 432.2 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.2752, allocations: 19.98 kB / 432.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.552e-05/0.2752, allocations: 19.92 kB / 432.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.669e-05/0.2753, allocations: 19.86 kB / 432.3 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.964e-05/0.2753, allocations: 11.98 kB / 432.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.2753, allocations: 4 kB / 432.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.614e-05/0.2754, allocations: 15.92 kB / 432.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.474e-05/0.2754, allocations: 27.81 kB / 432.3 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001872/0.2756, allocations: 65.36 kB / 432.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2756, allocations: 3.938 kB / 432.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2756, allocations: 3.938 kB / 432.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2756, allocations: 0 / 432.4 MB, free: 5.57 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.0005186/0.2761, allocations: 302 kB / 432.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2762, allocations: 8.031 kB / 432.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.2762, allocations: 34.75 kB / 432.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.2762, allocations: 16.84 kB / 432.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.2765, allocations: 134.4 kB / 432.9 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.2765, allocations: 8.359 kB / 432.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.2765, allocations: 4.375 kB / 432.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.2768, allocations: 147.8 kB / 433 MB, free: 4.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2768, allocations: 3.938 kB / 433 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.2768, allocations: 0 / 433 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2768, allocations: 0 / 433 MB, free: 4.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.972e-05/0.2769, allocations: 19.98 kB / 433.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.2771, allocations: 148.7 kB / 433.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001577/0.2772, allocations: 74.64 kB / 433.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2773, allocations: 41.03 kB / 433.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.2773, allocations: 7.984 kB / 433.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.2774, allocations: 30.56 kB / 433.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 2.745e-06/0.2774, allocations: 3.984 kB / 433.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002278/0.2776, allocations: 105.5 kB / 433.5 MB, free: 4.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.2777, allocations: 59.41 kB / 433.5 MB, free: 4.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2778, allocations: 144.7 kB / 433.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.2778, allocations: 25.7 kB / 433.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.104e-05/0.2779, allocations: 88.12 kB / 433.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.2779, allocations: 11.95 kB / 433.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.2779, allocations: 21.72 kB / 433.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2781, allocations: 318.8 kB / 434.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.081e-05/0.2781, allocations: 12 kB / 434.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.359e-05/0.2782, allocations: 58.86 kB / 434.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.254e-05/0.2783, allocations: 78.73 kB / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2783, allocations: 0 / 434.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001361/0.2784, allocations: 97.45 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.2785, allocations: 7.938 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2785, allocations: 8.25 kB / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2785, allocations: 192 / 434.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.2786, allocations: 19.98 kB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2786, allocations: 7.875 kB / 434.4 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.054e-05/0.2786, allocations: 7.938 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.2786, allocations: 4 kB / 434.4 MB, free: 3.305 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.0001469/0.2788, allocations: 125.8 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2789, allocations: 81.58 kB / 434.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.857e-05/0.2789, allocations: 20.66 kB / 434.6 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2789, allocations: 4 kB / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.2789, allocations: 3.984 kB / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.2789, allocations: 0 / 434.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.2791, allocations: 140.7 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2791, allocations: 0 / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.567e-05/0.2791, allocations: 15.98 kB / 434.8 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.2792, allocations: 3.938 kB / 434.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.2792, allocations: 4 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.2792, allocations: 0 / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2792, allocations: 0 / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000142/0.2793, allocations: 117 kB / 434.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.2794, allocations: 27.81 kB / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.2794, allocations: 0 / 435 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.336e-05/0.2794, allocations: 7.938 kB / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.886e-06/0.2794, allocations: 0 / 435 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.2794, allocations: 4 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.782e-05/0.2795, allocations: 107.2 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2795, allocations: 0 / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.2797, allocations: 12 kB / 435.1 MB, free: 2.562 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.0006994/0.2804, allocations: 0.6753 MB / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.2805, allocations: 56.34 kB / 435.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2805, allocations: 4.062 kB / 435.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.92e-07/0.2805, allocations: 0 / 435.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00036/0.2809, allocations: 42.97 kB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2823, allocations: 1.381 MB / 437.2 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.2827, allocations: 0.6963 MB / 437.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.447e-05/0.2827, allocations: 8.656 kB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.2828, allocations: 19.44 kB / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2828, allocations: 0 / 438 MB, free: 15.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.313, allocations: 1.96 MB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.41, allocations: 11.45 kB / 439.9 MB, free: 13.67 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.079696098997374]