Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2352, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002735/0.238, allocations: 1.847 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.2391, allocations: 0.6933 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.98e-05/0.2393, allocations: 4 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.433e-05/0.2394, allocations: 31.66 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.2395, allocations: 27.67 kB / 411.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.2397, allocations: 99.75 kB / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.2399, allocations: 171.5 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2401, allocations: 74.64 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.2403, allocations: 83.62 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.2404, allocations: 95.53 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.2404, allocations: 20 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.954e-05/0.2405, allocations: 20 kB / 411.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.2406, allocations: 47.83 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.2406, allocations: 79.48 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.2409, allocations: 209.4 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.2409, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2409, allocations: 4 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.2409, allocations: 0 / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000767/0.2417, allocations: 0.5062 MB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.2417, allocations: 12.03 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.2418, allocations: 50.73 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.2419, allocations: 32.78 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2422, allocations: 257.5 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.2422, allocations: 12.38 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.2423, allocations: 20.38 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.2426, allocations: 213.4 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.2426, allocations: 0 / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.2427, allocations: 7.984 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.2427, allocations: 8 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003118/0.243, allocations: 143.8 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009322/0.2439, allocations: 0.7779 MB / 414.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006097/0.2446, allocations: 198.7 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2447, allocations: 60.83 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.2448, allocations: 0 / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.245, allocations: 149 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.245, allocations: 0 / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005358/0.2456, allocations: 245.4 kB / 414.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.2456, allocations: 85.09 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.2458, allocations: 223.1 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.2458, allocations: 29.7 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.2459, allocations: 144.4 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.2459, allocations: 39.66 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/0.246, allocations: 65.64 kB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.2461, allocations: 330.8 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.2463, allocations: 63.95 kB / 415.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.2465, allocations: 144.5 kB / 416 MB, free: 9.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.2469, allocations: 216.6 kB / 416.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2469, allocations: 0 / 416.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000444/0.2473, allocations: 253.2 kB / 416.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2473, allocations: 8 kB / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2473, allocations: 0 / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.2474, allocations: 4 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.2475, allocations: 36.3 kB / 416.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2476, allocations: 8.25 kB / 416.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.2477, allocations: 39.75 kB / 416.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.2478, allocations: 8 kB / 416.6 MB, free: 9.383 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001194/0.2479, allocations: 155.9 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.048e-05/0.2479, allocations: 15.91 kB / 416.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.2482, allocations: 131 kB / 416.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.2482, allocations: 8 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2482, allocations: 0 / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2482, allocations: 3.938 kB / 416.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005974/0.2488, allocations: 482.2 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2488, allocations: 0 / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.249, allocations: 19.98 kB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.249, allocations: 0 / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.249, allocations: 11.94 kB / 417.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.249, allocations: 0 / 417.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.249, allocations: 4 kB / 417.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.2494, allocations: 284.1 kB / 417.7 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.2495, allocations: 100.9 kB / 417.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.2495, allocations: 7.984 kB / 417.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.2497, allocations: 19.98 kB / 417.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.832e-05/0.2498, allocations: 23.97 kB / 417.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.2498, allocations: 11.98 kB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.2499, allocations: 144.7 kB / 418 MB, free: 7.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2499, allocations: 0 / 418 MB, free: 7.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.2502, allocations: 39.95 kB / 418 MB, free: 7.84 MB / 334.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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006653/0.2509, allocations: 0.8379 MB / 418.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.2513, allocations: 171 kB / 419 MB, free: 6.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.2513, allocations: 4.438 kB / 419 MB, free: 6.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.2515, allocations: 83.89 kB / 419.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.2518, allocations: 28.25 kB / 419.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.2543, allocations: 2.233 MB / 421.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.2545, allocations: 0.7398 MB / 422.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.2546, allocations: 33.52 kB / 422.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.2547, allocations: 63.42 kB / 422.2 MB, free: 3.445 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2547, allocations: 4 kB / 422.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.2721, allocations: 4.121 MB / 426.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/7.842, allocations: 4.062 kB / 426.3 MB, free: 15.39 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches