Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.001182/0.001182, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 48.02 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2513, allocations: 49.44 MB / 400.2 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002888/0.2542, allocations: 1.504 MB / 401.7 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004284/0.2547, allocations: 140 kB / 401.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.406e-05/0.2548, allocations: 5.031 kB / 401.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.994e-05/0.2549, allocations: 9.016 kB / 401.9 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.255, allocations: 9.031 kB / 401.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.2553, allocations: 39.88 kB / 401.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000102/0.2554, allocations: 31.91 kB / 402 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.2555, allocations: 19.92 kB / 402 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.562e-05/0.2555, allocations: 15.92 kB / 402 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.332e-05/0.2556, allocations: 15.88 kB / 402 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.2556, allocations: 8 kB / 402 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.147e-06/0.2556, allocations: 0 / 402 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.119e-05/0.2557, allocations: 15.92 kB / 402 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.2557, allocations: 15.88 kB / 402 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001189/0.2559, allocations: 50.7 kB / 402.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2559, allocations: 0 / 402.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2559, allocations: 0 / 402.1 MB, free: 7.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.2559, allocations: 4 kB / 402.1 MB, free: 7.09 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004481/0.2563, allocations: 375.1 kB / 402.5 MB, free: 6.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2564, allocations: 12.03 kB / 402.5 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.796e-05/0.2564, allocations: 38.75 kB / 402.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.2565, allocations: 8.891 kB / 402.5 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.2567, allocations: 196.2 kB / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.2567, allocations: 384 / 402.7 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.2567, allocations: 4.375 kB / 402.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.257, allocations: 117.6 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.257, allocations: 3.938 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.257, allocations: 4 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.257, allocations: 4 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.893e-05/0.2571, allocations: 15.92 kB / 402.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002729/0.2574, allocations: 269.7 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.2576, allocations: 142.2 kB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.202e-05/0.2576, allocations: 29.77 kB / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.2577, allocations: 0 / 403.3 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.2577, allocations: 34.56 kB / 403.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2577, allocations: 4 kB / 403.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002285/0.2579, allocations: 73.56 kB / 403.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.258, allocations: 85.05 kB / 403.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.2581, allocations: 130.1 kB / 403.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.2581, allocations: 25.7 kB / 403.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.566e-05/0.2582, allocations: 96.25 kB / 403.7 MB, free: 5.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.077e-05/0.2582, allocations: 4 kB / 403.7 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.2582, allocations: 17.67 kB / 403.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2583, allocations: 326.8 kB / 404.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.989e-05/0.2584, allocations: 4 kB / 404.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.429e-05/0.2584, allocations: 39.36 kB / 404.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.967e-05/0.2585, allocations: 51.36 kB / 404.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2585, allocations: 3.938 kB / 404.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001177/0.2587, allocations: 57.75 kB / 404.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.2587, allocations: 12 kB / 404.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2587, allocations: 0 / 404.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2587, allocations: 0 / 404.2 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.726e-05/0.2588, allocations: 11.98 kB / 404.3 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.2588, allocations: 4 kB / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.152e-05/0.2588, allocations: 0 / 404.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.2588, allocations: 4 kB / 404.3 MB, free: 4.617 MB / 318.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 9.312e-05/0.2589, allocations: 129.7 kB / 404.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.259, allocations: 49.66 kB / 404.4 MB, free: 4.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.2591, allocations: 12.23 kB / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2591, allocations: 336 / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2591, allocations: 0 / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2591, allocations: 0 / 404.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.2592, allocations: 173.6 kB / 404.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.2593, allocations: 0 / 404.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.921e-05/0.2593, allocations: 11.98 kB / 404.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2593, allocations: 0 / 404.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.2593, allocations: 4 kB / 404.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.2593, allocations: 3.984 kB / 404.6 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2593, allocations: 8 kB / 404.6 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.2595, allocations: 168.2 kB / 404.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.379e-05/0.2596, allocations: 89.05 kB / 404.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.2596, allocations: 7.938 kB / 404.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.854e-05/0.2597, allocations: 3.984 kB / 404.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.2597, allocations: 8 kB / 404.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.558e-06/0.2597, allocations: 4 kB / 404.9 MB, free: 3.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.902e-05/0.2598, allocations: 102.4 kB / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2598, allocations: 0 / 405 MB, free: 3.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.26, allocations: 12 kB / 405 MB, free: 3.738 MB / 318.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.0004447/0.2605, allocations: 0.7053 MB / 405.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001343/0.2606, allocations: 31.92 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2606, allocations: 0 / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.304e-05/0.2607, allocations: 8 kB / 405.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.261, allocations: 27.05 kB / 405.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.2621, allocations: 1.318 MB / 407.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.2624, allocations: 0.6961 MB / 407.8 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.377e-05/0.2624, allocations: 0 / 407.8 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.2624, allocations: 15.44 kB / 407.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2624, allocations: 0 / 407.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.2787, allocations: 1.473 MB / 409.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/7.796, allocations: 4.562 kB / 409.3 MB, free: 15.41 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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