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.001612/0.001612, allocations: 107.9 kB / 16.92 MB, free: 5.895 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.001735/0.001735, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.481/1.481, allocations: 222.9 MB / 241.6 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001579, allocations: 46.97 kB / 300.7 MB, free: 5.715 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.135, allocations: 49.44 MB / 350.2 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.003772/0.1388, allocations: 1.503 MB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005742/0.1395, allocations: 149 kB / 351.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.1396, allocations: 4 kB / 351.8 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.09e-05/0.1397, allocations: 3.938 kB / 351.8 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.1399, allocations: 7.938 kB / 351.8 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002735/0.1401, allocations: 43.83 kB / 351.9 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.1403, allocations: 23.98 kB / 351.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1404, allocations: 12 kB / 351.9 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.685e-05/0.1404, allocations: 19.86 kB / 351.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.465e-05/0.1405, allocations: 19.88 kB / 351.9 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.1405, allocations: 4 kB / 351.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.1405, allocations: 0 / 351.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.559e-05/0.1406, allocations: 15.92 kB / 352 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.1406, allocations: 19.86 kB / 352 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.1408, allocations: 43.83 kB / 352 MB, free: 2.387 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1408, allocations: 3.938 kB / 352 MB, free: 2.383 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1408, allocations: 0 / 352 MB, free: 2.383 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1408, allocations: 0 / 352 MB, free: 2.383 MB / 286.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.0005173/0.1413, allocations: 371.5 kB / 352.4 MB, free: 1.969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1414, allocations: 12.03 kB / 352.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.1414, allocations: 34.75 kB / 352.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.238e-05/0.1415, allocations: 8.844 kB / 352.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002024/0.1417, allocations: 192.1 kB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1417, allocations: 8.312 kB / 352.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1417, allocations: 4.359 kB / 352.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.142, allocations: 117.5 kB / 352.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.142, allocations: 11.92 kB / 352.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.142, allocations: 0 / 352.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1421, allocations: 0 / 352.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.34e-05/0.1421, allocations: 19.98 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003763/0.1425, allocations: 261.8 kB / 353 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.1428, allocations: 142.2 kB / 353.2 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.1429, allocations: 25.72 kB / 353.2 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.1429, allocations: 4 kB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1429, allocations: 38.55 kB / 353.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.1429, allocations: 0 / 353.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002703/0.1432, allocations: 77.52 kB / 353.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.1433, allocations: 77.11 kB / 353.4 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.1434, allocations: 137.6 kB / 353.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1434, allocations: 25.7 kB / 353.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.1435, allocations: 92.2 kB / 353.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.1435, allocations: 3.984 kB / 353.7 MB, free: 500 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.1436, allocations: 25.62 kB / 353.7 MB, free: 468 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1437, allocations: 314.8 kB / 354 MB, free: 144 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.172e-05/0.1437, allocations: 7.984 kB / 354 MB, free: 136 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.961e-05/0.1438, allocations: 35.42 kB / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.531e-05/0.1439, allocations: 47.36 kB / 354.1 MB, free: 28 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1439, allocations: 3.938 kB / 354.1 MB, free: 24 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001504/0.1441, allocations: 65.66 kB / 354.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1441, allocations: 8.031 kB / 354.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.1441, allocations: 4 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1441, allocations: 0 / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.624e-05/0.1442, allocations: 11.98 kB / 354.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1442, allocations: 0 / 354.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.74e-05/0.1442, allocations: 7.938 kB / 354.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-06/0.1443, allocations: 0 / 354.2 MB, free: 15.92 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 9.984e-05/0.1444, allocations: 129.8 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/0.1445, allocations: 53.55 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/0.1445, allocations: 12.23 kB / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1445, allocations: 0 / 354.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1445, allocations: 4 kB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.1445, allocations: 0 / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.1447, allocations: 169.9 kB / 354.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.1447, allocations: 3.938 kB / 354.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/0.1448, allocations: 8 kB / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1448, allocations: 0 / 354.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.659e-06/0.1448, allocations: 4 kB / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1448, allocations: 0 / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1448, allocations: 4 kB / 354.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.145, allocations: 176.2 kB / 354.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.1451, allocations: 93 kB / 354.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1451, allocations: 0 / 354.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.929e-05/0.1452, allocations: 3.984 kB / 354.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.007e-05/0.1452, allocations: 4 kB / 354.8 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.1452, allocations: 8 kB / 354.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.996e-05/0.1453, allocations: 103.2 kB / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1453, allocations: 0 / 354.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1455, allocations: 8 kB / 354.9 MB, free: 15.04 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.0004722/0.146, allocations: 0.7053 MB / 355.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001796/0.1462, allocations: 27.97 kB / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.1462, allocations: 0 / 355.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.677e-05/0.1463, allocations: 15.94 kB / 355.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004289/0.1467, allocations: 22.59 kB / 355.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.1482, allocations: 1.326 MB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.1485, allocations: 0.6885 MB / 357.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.093e-05/0.1485, allocations: 4 kB / 357.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.986e-05/0.1486, allocations: 15.42 kB / 357.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1486, allocations: 0 / 357.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.1692, allocations: 1.438 MB / 359.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.665/7.834, allocations: 6.5 kB / 359.2 MB, free: 10.73 MB / 302.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