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.001936/0.001936, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002287/0.002287, allocations: 198 kB / 18.73 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.443/1.443, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002555/0.002555, allocations: 67.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3249, allocations: 50.55 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00337/0.3283, allocations: 1.846 MB / 410.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.3298, allocations: 0.6972 MB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3299, allocations: 4 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.33, allocations: 31.67 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.3302, allocations: 35.66 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.3305, allocations: 91.77 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.3308, allocations: 171.5 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001865/0.331, allocations: 78.61 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.3312, allocations: 79.66 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.3314, allocations: 91.53 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.3314, allocations: 16 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.753e-05/0.3315, allocations: 27.98 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.3316, allocations: 39.84 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.3317, allocations: 91.45 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.332, allocations: 205.5 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.332, allocations: 4 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.332, allocations: 0 / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3321, allocations: 0 / 412.3 MB, free: 13.97 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.001025/0.3331, allocations: 0.5023 MB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.3331, allocations: 12.03 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.185e-05/0.3332, allocations: 50.73 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.3334, allocations: 32.78 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.3338, allocations: 261.5 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.3338, allocations: 8.375 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.3338, allocations: 16.38 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004297/0.3343, allocations: 217.4 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3343, allocations: 0 / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.3343, allocations: 4 kB / 413.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.533e-05/0.3343, allocations: 8 kB / 413.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.3347, allocations: 139.8 kB / 413.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.3358, allocations: 0.7857 MB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/0.3365, allocations: 194.6 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.3366, allocations: 60.83 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3367, allocations: 0 / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.337, allocations: 149 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.337, allocations: 0 / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.00062/0.3376, allocations: 253.3 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.3377, allocations: 77.11 kB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.3379, allocations: 223.1 kB / 415.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.338, allocations: 33.7 kB / 415.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.3381, allocations: 144.4 kB / 415.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.3381, allocations: 39.72 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.525e-05/0.3382, allocations: 61.64 kB / 415.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.3384, allocations: 330.8 kB / 415.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.3386, allocations: 67.89 kB / 415.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.3388, allocations: 144.5 kB / 416.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.3392, allocations: 216.6 kB / 416.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3392, allocations: 0 / 416.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005055/0.3397, allocations: 253.2 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3397, allocations: 8 kB / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3397, allocations: 0 / 416.5 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.3398, allocations: 4 kB / 416.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.3399, allocations: 32.36 kB / 416.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.34, allocations: 11.92 kB / 416.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.3402, allocations: 36.02 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.3402, allocations: 16 kB / 416.6 MB, free: 9.305 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.0001571/0.3404, allocations: 148 kB / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.3404, allocations: 19.91 kB / 416.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003058/0.3407, allocations: 127 kB / 416.9 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3407, allocations: 4 kB / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3407, allocations: 0 / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3408, allocations: 3.938 kB / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007384/0.3415, allocations: 486.2 kB / 417.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3415, allocations: 4 kB / 417.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001185/0.3416, allocations: 15.98 kB / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3417, allocations: 0 / 417.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.3417, allocations: 11.94 kB / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.3417, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3417, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004744/0.3422, allocations: 292.1 kB / 417.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.3423, allocations: 96.95 kB / 417.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.3423, allocations: 3.938 kB / 417.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.3425, allocations: 24.03 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/0.3426, allocations: 19.98 kB / 417.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.3426, allocations: 11.98 kB / 417.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001425/0.3428, allocations: 144.7 kB / 418 MB, free: 7.812 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3428, allocations: 0 / 418 MB, free: 7.812 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.3431, allocations: 43.95 kB / 418.1 MB, free: 7.77 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.0008682/0.344, allocations: 0.8411 MB / 418.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004292/0.3444, allocations: 164 kB / 419.1 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3444, allocations: 3.938 kB / 419.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.3446, allocations: 79.89 kB / 419.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.345, allocations: 36.47 kB / 419.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.348, allocations: 2.237 MB / 421.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.3484, allocations: 0.7359 MB / 422.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.3486, allocations: 37.5 kB / 422.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.3487, allocations: 63.42 kB / 422.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3487, allocations: 0 / 422.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02762/0.3763, allocations: 4.12 MB / 426.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.911/9.287, allocations: 7.938 kB / 426.4 MB, free: 15.32 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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