Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002546/0.002546, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.932/2.932, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 43.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4518/0.4533, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.003628/0.457, allocations: 0.8407 MB / 401.1 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006384/0.4577, allocations: 118.3 kB / 401.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.4579, allocations: 1.094 kB / 401.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.4581, allocations: 9.203 kB / 401.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.4583, allocations: 14.73 kB / 401.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003685/0.4586, allocations: 38.84 kB / 401.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002126/0.4589, allocations: 35.75 kB / 401.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.4591, allocations: 22.48 kB / 401.3 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.447e-05/0.4592, allocations: 24.48 kB / 401.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.4593, allocations: 18.8 kB / 401.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-05/0.4593, allocations: 3.156 kB / 401.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.281e-05/0.4594, allocations: 7.312 kB / 401.4 MB, free: 7.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.473e-05/0.4595, allocations: 22.45 kB / 401.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.516e-05/0.4596, allocations: 25.22 kB / 401.4 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002346/0.4598, allocations: 59.67 kB / 401.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.4598, allocations: 0 / 401.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4598, allocations: 0 / 401.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.4599, allocations: 1.125 kB / 401.5 MB, free: 7.508 MB / 318.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.0008192/0.4607, allocations: 386.9 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.4608, allocations: 8.812 kB / 401.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.168e-05/0.4609, allocations: 41 kB / 401.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.609e-05/0.4609, allocations: 9.219 kB / 401.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/0.4613, allocations: 205.5 kB / 402.1 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/0.4613, allocations: 5.938 kB / 402.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.4613, allocations: 4.281 kB / 402.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004683/0.4618, allocations: 148.5 kB / 402.3 MB, free: 6.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.4619, allocations: 7.875 kB / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.4619, allocations: 0 / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.4619, allocations: 0 / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.451e-05/0.462, allocations: 19.98 kB / 402.3 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000255/0.4623, allocations: 177.6 kB / 402.5 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.4625, allocations: 70.75 kB / 402.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.4626, allocations: 48.78 kB / 402.6 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.4626, allocations: 4 kB / 402.6 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.4627, allocations: 34.55 kB / 402.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.4627, allocations: 0 / 402.6 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003385/0.463, allocations: 101.7 kB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.98e-05/0.4631, allocations: 59.39 kB / 402.8 MB, free: 6.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.4633, allocations: 145.7 kB / 402.9 MB, free: 5.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.4634, allocations: 29.7 kB / 402.9 MB, free: 5.891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.668e-05/0.4634, allocations: 84.14 kB / 403 MB, free: 5.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.4635, allocations: 4 kB / 403 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.4636, allocations: 33.64 kB / 403.1 MB, free: 5.762 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4637, allocations: 314.8 kB / 403.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.441e-05/0.4638, allocations: 11.98 kB / 403.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.464, allocations: 58.86 kB / 403.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001452/0.4641, allocations: 78.75 kB / 403.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4641, allocations: 0 / 403.5 MB, free: 5.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002231/0.4644, allocations: 89.45 kB / 403.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.4644, allocations: 17.84 kB / 403.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4644, allocations: 4 kB / 403.6 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.4645, allocations: 4.25 kB / 403.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.4646, allocations: 16 kB / 403.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4646, allocations: 0 / 403.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.286e-05/0.4647, allocations: 16.08 kB / 403.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.4647, allocations: 4 kB / 403.7 MB, free: 5.098 MB / 318.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.0001654/0.4649, allocations: 129.7 kB / 403.8 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.4651, allocations: 89.52 kB / 403.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.054e-05/0.4652, allocations: 8.719 kB / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.4652, allocations: 8 kB / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4652, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4652, allocations: 0 / 403.9 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.4654, allocations: 169.6 kB / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4654, allocations: 0 / 404.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.4655, allocations: 12 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.4656, allocations: 3.938 kB / 404.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.4656, allocations: 8 kB / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/0.4656, allocations: 7.938 kB / 404.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.4656, allocations: 4.375 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.4659, allocations: 113 kB / 404.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.466, allocations: 92.94 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.223e-05/0.466, allocations: 8 kB / 404.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.907e-05/0.4661, allocations: 3.984 kB / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-06/0.4661, allocations: 0 / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.4661, allocations: 0 / 404.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.4663, allocations: 107.3 kB / 404.4 MB, free: 4.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.02e-07/0.4663, allocations: 0 / 404.4 MB, free: 4.242 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.4667, allocations: 12 kB / 404.4 MB, free: 4.23 MB / 318.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.000768/0.4675, allocations: 0.6825 MB / 405.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.4677, allocations: 48.41 kB / 405.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.4677, allocations: 64 / 405.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.353e-06/0.4677, allocations: 7.938 kB / 405.2 MB, free: 3.465 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.4682, allocations: 54.56 kB / 405.2 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.4702, allocations: 1.363 MB / 406.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004882/0.4707, allocations: 0.7041 MB / 407.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.5e-05/0.4708, allocations: 4.672 kB / 407.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-05/0.4709, allocations: 19.42 kB / 407.3 MB, free: 1.168 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4709, allocations: 0 / 407.3 MB, free: 1.168 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.5007, allocations: 1.836 MB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.532/9.033, allocations: 11.61 kB / 409.2 MB, free: 15.45 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches