Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",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.00188/0.00188, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.002105/0.002106, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.001481, allocations: 51.91 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2445, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003328/0.2479, allocations: 1.823 MB / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2491, allocations: 0.6155 MB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2492, allocations: 7.938 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.2494, allocations: 31.66 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.2496, allocations: 27.72 kB / 402.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.2498, allocations: 87.8 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.2501, allocations: 175.5 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.2503, allocations: 74.02 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.2504, allocations: 75.64 kB / 403.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.2506, allocations: 87.59 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.2506, allocations: 12 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.2507, allocations: 31.92 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.239e-05/0.2508, allocations: 39.84 kB / 403.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.683e-05/0.2509, allocations: 87.47 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.2512, allocations: 193.5 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2512, allocations: 4 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2512, allocations: 0 / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.2512, allocations: 4 kB / 403.6 MB, free: 5.426 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009932/0.2522, allocations: 0.5101 MB / 404.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.2523, allocations: 8.031 kB / 404.1 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.83e-05/0.2524, allocations: 54.73 kB / 404.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/0.2524, allocations: 20.8 kB / 404.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.2527, allocations: 248.5 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.2528, allocations: 24.11 kB / 404.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.2528, allocations: 16 kB / 404.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004295/0.2532, allocations: 210.2 kB / 404.7 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.2533, allocations: 8 kB / 404.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.2533, allocations: 7.984 kB / 404.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.132e-05/0.2533, allocations: 12 kB / 404.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003572/0.2537, allocations: 139.7 kB / 404.8 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.2548, allocations: 0.7818 MB / 405.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006497/0.2555, allocations: 190.6 kB / 405.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.2556, allocations: 64.81 kB / 405.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.2557, allocations: 8 kB / 405.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.256, allocations: 144.9 kB / 406 MB, free: 2.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.256, allocations: 0 / 406 MB, free: 2.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006604/0.2567, allocations: 245.4 kB / 406.3 MB, free: 2.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.2567, allocations: 93.03 kB / 406.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.257, allocations: 214.9 kB / 406.6 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.257, allocations: 29.7 kB / 406.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2572, allocations: 144.5 kB / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.2572, allocations: 31.73 kB / 406.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.115e-05/0.2573, allocations: 61.66 kB / 406.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.2575, allocations: 334.8 kB / 407.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.2577, allocations: 63.95 kB / 407.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.2579, allocations: 140.4 kB / 407.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003745/0.2583, allocations: 212.3 kB / 407.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2583, allocations: 0 / 407.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004779/0.2588, allocations: 241.3 kB / 407.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.2588, allocations: 8 kB / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2588, allocations: 256 / 407.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.2589, allocations: 11.94 kB / 407.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.259, allocations: 43.91 kB / 407.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.2591, allocations: 7.938 kB / 407.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.2593, allocations: 35.81 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.2593, allocations: 8 kB / 407.9 MB, free: 0.7773 MB / 318.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.0001597/0.2594, allocations: 151.9 kB / 408 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.2595, allocations: 27.84 kB / 408.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002685/0.2598, allocations: 131.7 kB / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.2598, allocations: 7.938 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.2598, allocations: 4.094 kB / 408.2 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2598, allocations: 3.938 kB / 408.2 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006844/0.2605, allocations: 474.3 kB / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2605, allocations: 0 / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2606, allocations: 23.92 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.2607, allocations: 7.984 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2607, allocations: 4 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2607, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2607, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004588/0.2612, allocations: 288.1 kB / 409 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.886e-05/0.2612, allocations: 100.9 kB / 409.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/0.2613, allocations: 11.98 kB / 409.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2615, allocations: 11.98 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.068e-05/0.2615, allocations: 23.97 kB / 409.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.2616, allocations: 8 kB / 409.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.2617, allocations: 148.6 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2617, allocations: 0 / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.262, allocations: 39.89 kB / 409.3 MB, free: 15.23 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.0008272/0.2629, allocations: 0.834 MB / 410.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004224/0.2633, allocations: 176.1 kB / 410.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2633, allocations: 0 / 410.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.2635, allocations: 75.91 kB / 410.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.2639, allocations: 32.19 kB / 410.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.2668, allocations: 2.253 MB / 412.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.2672, allocations: 0.728 MB / 413.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000118/0.2673, allocations: 41.52 kB / 413.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.2675, allocations: 67.41 kB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2675, allocations: 0 / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02519/0.2927, allocations: 4.073 MB / 417.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.553, allocations: 16.83 kB / 417.6 MB, free: 6.82 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches