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.001221/0.001221, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001192/0.001192, allocations: 193.4 kB / 18 MB, free: 5.066 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.468/1.468, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 39.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.261, allocations: 49.44 MB / 400.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.00262/0.2637, allocations: 1.511 MB / 401.7 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003814/0.2641, allocations: 139.6 kB / 401.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.658e-05/0.2641, allocations: 7.938 kB / 401.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.385e-05/0.2642, allocations: 7.922 kB / 401.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.2643, allocations: 3.938 kB / 401.9 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000224/0.2646, allocations: 39.91 kB / 401.9 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.2647, allocations: 31.91 kB / 402 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.401e-05/0.2648, allocations: 23.97 kB / 402 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.864e-05/0.2648, allocations: 11.92 kB / 402 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.167e-05/0.2648, allocations: 15.88 kB / 402 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.2649, allocations: 0 / 402 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.2649, allocations: 4 kB / 402 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.693e-05/0.2649, allocations: 15.92 kB / 402 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.444e-05/0.265, allocations: 23.81 kB / 402.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.2651, allocations: 54.7 kB / 402.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2651, allocations: 0 / 402.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2651, allocations: 0 / 402.1 MB, free: 7.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.2651, allocations: 0 / 402.1 MB, free: 7.055 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.0004478/0.2656, allocations: 379 kB / 402.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.2656, allocations: 12.03 kB / 402.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.976e-05/0.2657, allocations: 30.75 kB / 402.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.647e-05/0.2657, allocations: 12.89 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.2659, allocations: 188.3 kB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.2659, allocations: 4.375 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2659, allocations: 8.375 kB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.2662, allocations: 113.6 kB / 402.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2662, allocations: 11.88 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.722e-06/0.2663, allocations: 0 / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2663, allocations: 0 / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.772e-05/0.2663, allocations: 19.98 kB / 402.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002953/0.2667, allocations: 257.7 kB / 403.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.2669, allocations: 150.2 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.385e-05/0.2669, allocations: 29.77 kB / 403.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.267, allocations: 0 / 403.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.267, allocations: 34.5 kB / 403.3 MB, free: 5.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.267, allocations: 3.938 kB / 403.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002383/0.2673, allocations: 77.62 kB / 403.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.2673, allocations: 85.05 kB / 403.5 MB, free: 5.422 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.2674, allocations: 134.1 kB / 403.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.2675, allocations: 25.7 kB / 403.7 MB, free: 5.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.893e-05/0.2675, allocations: 88.12 kB / 403.7 MB, free: 5.156 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.2675, allocations: 4 kB / 403.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-05/0.2676, allocations: 21.67 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2677, allocations: 319 kB / 404.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.934e-05/0.2678, allocations: 8 kB / 404.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-05/0.2678, allocations: 31.42 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.903e-05/0.2679, allocations: 55.36 kB / 404.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2679, allocations: 3.938 kB / 404.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001236/0.268, allocations: 61.62 kB / 404.2 MB, free: 4.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2681, allocations: 11.94 kB / 404.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.2681, allocations: 0 / 404.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.2681, allocations: 0 / 404.2 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.091e-05/0.2682, allocations: 20.05 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.2682, allocations: 0 / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.267e-05/0.2682, allocations: 4 kB / 404.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.2682, allocations: 4 kB / 404.3 MB, free: 4.578 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.123e-05/0.2683, allocations: 121.8 kB / 404.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.788e-05/0.2684, allocations: 45.66 kB / 404.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/0.2684, allocations: 16.56 kB / 404.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2684, allocations: 0 / 404.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2684, allocations: 0 / 404.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2685, allocations: 7.984 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.2686, allocations: 165.6 kB / 404.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2687, allocations: 4 kB / 404.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.924e-05/0.2687, allocations: 7.938 kB / 404.6 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2687, allocations: 4 kB / 404.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.2687, allocations: 4 kB / 404.6 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.503e-06/0.2687, allocations: 7.984 kB / 404.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2687, allocations: 3.938 kB / 404.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.2689, allocations: 168.3 kB / 404.8 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.269, allocations: 89.05 kB / 404.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.269, allocations: 4 kB / 404.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.2691, allocations: 7.984 kB / 404.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.2691, allocations: 0 / 404.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.2691, allocations: 0 / 404.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.633e-05/0.2692, allocations: 111.1 kB / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2692, allocations: 0 / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.2694, allocations: 8 kB / 405 MB, free: 3.707 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.0004842/0.2699, allocations: 0.7054 MB / 405.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.2701, allocations: 35.92 kB / 405.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2701, allocations: 0 / 405.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.372e-05/0.2701, allocations: 4 kB / 405.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003156/0.2704, allocations: 27.33 kB / 405.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.2717, allocations: 1.322 MB / 407.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.272, allocations: 0.6922 MB / 407.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.133e-05/0.272, allocations: 0 / 407.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.086e-05/0.2721, allocations: 15.44 kB / 407.8 MB, free: 0.75 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2721, allocations: 4 kB / 407.8 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.294, allocations: 1.473 MB / 409.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.731/8.025, allocations: 0.625 kB / 409.3 MB, free: 15.38 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