Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 60.38 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09392, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002689/0.09664, allocations: 1.505 MB / 359.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000355/0.09702, allocations: 143.5 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.528e-05/0.09711, allocations: 8 kB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.896e-05/0.09717, allocations: 3.938 kB / 359.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.09728, allocations: 11.88 kB / 359.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.09751, allocations: 35.89 kB / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.062e-05/0.0976, allocations: 31.92 kB / 359.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.313e-05/0.0977, allocations: 19.97 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.942e-05/0.09773, allocations: 15.92 kB / 359.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.052e-05/0.09778, allocations: 15.88 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.0978, allocations: 4 kB / 359.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.179e-05/0.09782, allocations: 4 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.92e-05/0.09787, allocations: 15.92 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/0.09791, allocations: 15.88 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.494e-05/0.09801, allocations: 47.81 kB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.09802, allocations: 3.938 kB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09803, allocations: 0 / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.09804, allocations: 0 / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003789/0.09842, allocations: 367.5 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.09846, allocations: 12.03 kB / 359.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.002e-05/0.0985, allocations: 38.75 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.524e-05/0.09853, allocations: 8.844 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.09871, allocations: 194.6 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.288e-06/0.09872, allocations: 4.375 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.09874, allocations: 4.375 kB / 360.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.09899, allocations: 117.6 kB / 360.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.09901, allocations: 3.938 kB / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.09902, allocations: 4 kB / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.257e-06/0.09903, allocations: 0 / 360.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.496e-05/0.09911, allocations: 23.92 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002589/0.09938, allocations: 257.8 kB / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001887/0.09958, allocations: 138.2 kB / 360.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.183e-05/0.09965, allocations: 29.77 kB / 360.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.09967, allocations: 0 / 360.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.15e-05/0.0997, allocations: 42.56 kB / 360.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.41e-07/0.0997, allocations: 0 / 360.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002269/0.09993, allocations: 81.5 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.09999, allocations: 81.05 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1001, allocations: 130.1 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.1001, allocations: 29.7 kB / 361 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.325e-05/0.1002, allocations: 92.06 kB / 361.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.765e-06/0.1002, allocations: 4.125 kB / 361.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.1002, allocations: 25.61 kB / 361.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.789e-05/0.1003, allocations: 318.8 kB / 361.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.862e-05/0.1004, allocations: 11.92 kB / 361.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.41e-05/0.1004, allocations: 35.42 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.621e-05/0.1005, allocations: 43.38 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1005, allocations: 3.938 kB / 361.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001224/0.1006, allocations: 65.61 kB / 361.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1007, allocations: 4 kB / 361.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1007, allocations: 8.109 kB / 361.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1007, allocations: 4 kB / 361.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.607e-05/0.1008, allocations: 11.98 kB / 361.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1008, allocations: 0 / 361.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.324e-05/0.1008, allocations: 7.938 kB / 361.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-06/0.1008, allocations: 0 / 361.6 MB, free: 9.641 MB / 302.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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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.531e-05/0.1009, allocations: 126.8 kB / 361.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.23e-05/0.101, allocations: 49.59 kB / 361.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.101, allocations: 16.25 kB / 361.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.101, allocations: 0 / 361.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.101, allocations: 3.984 kB / 361.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.101, allocations: 4 kB / 361.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001561/0.1012, allocations: 169.6 kB / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1012, allocations: 0 / 362 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.644e-05/0.1013, allocations: 8 kB / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1013, allocations: 336 / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.1013, allocations: 0 / 362 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.1013, allocations: 4 kB / 362 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1013, allocations: 7.938 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.1015, allocations: 172.2 kB / 362.2 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.1015, allocations: 93 kB / 362.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.1015, allocations: 4 kB / 362.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.709e-05/0.1016, allocations: 0 / 362.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.973e-05/0.1016, allocations: 7.984 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.1016, allocations: 0 / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.258e-05/0.1017, allocations: 114.6 kB / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1017, allocations: 0 / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002213/0.1019, allocations: 4 kB / 362.4 MB, free: 8.766 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (step.y,assignClock.u,assignClock.y,sample1.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.0004803/0.1024, allocations: 0.7053 MB / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.1026, allocations: 35.91 kB / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1026, allocations: 0 / 363.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.1026, allocations: 4 kB / 363.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.103, allocations: 28.02 kB / 363.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.1041, allocations: 1.322 MB / 364.5 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.1044, allocations: 0.6885 MB / 365.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.091e-05/0.1044, allocations: 0 / 365.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.1045, allocations: 15.44 kB / 365.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1045, allocations: 0 / 365.2 MB, free: 5.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01634/0.1208, allocations: 1.432 MB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.495/7.616, allocations: 8 kB / 366.6 MB, free: 4.461 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,step.startTime,assignClock.u,assignClock.y,sample1.y,step.y