Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_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.001355/0.001356, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001309/0.001309, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09563, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003049/0.09871, allocations: 1.81 MB / 376.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.09997, allocations: 0.6785 MB / 377.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1001, allocations: 3.938 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.1003, allocations: 31.66 kB / 377.2 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.1004, allocations: 27.73 kB / 377.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.1008, allocations: 79.78 kB / 377.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.1011, allocations: 179.5 kB / 377.4 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.1013, allocations: 70.62 kB / 377.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.1014, allocations: 79.64 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.1016, allocations: 87.61 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.509e-05/0.1017, allocations: 12 kB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.638e-05/0.1018, allocations: 20 kB / 377.7 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.579e-05/0.1019, allocations: 55.75 kB / 377.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.102, allocations: 79.48 kB / 377.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1023, allocations: 203.1 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1023, allocations: 3.938 kB / 378 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1023, allocations: 0 / 378 MB, free: 1.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1023, allocations: 0 / 378 MB, free: 1.648 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.00105/0.1034, allocations: 0.5102 MB / 378.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.1035, allocations: 8.031 kB / 378.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.771e-05/0.1035, allocations: 46.73 kB / 378.6 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.656e-05/0.1036, allocations: 24.8 kB / 378.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.1039, allocations: 248 kB / 378.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.104, allocations: 12.38 kB / 378.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.104, allocations: 24.36 kB / 378.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.1044, allocations: 205.4 kB / 379.1 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1045, allocations: 3.938 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1045, allocations: 8 kB / 379.1 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.1045, allocations: 7.859 kB / 379.1 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003423/0.1049, allocations: 151.7 kB / 379.3 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1675/0.2724, allocations: 0.779 MB / 380.1 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006054/0.273, allocations: 186.9 kB / 380.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.2732, allocations: 68.34 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.2732, allocations: 3.359 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.2735, allocations: 139.6 kB / 380.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.2735, allocations: 0 / 380.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005708/0.2741, allocations: 246.8 kB / 380.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.2741, allocations: 80.25 kB / 380.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.2743, allocations: 228.1 kB / 381 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.2743, allocations: 31.52 kB / 381 MB, free: 12.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.2744, allocations: 141.2 kB / 381.2 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.2744, allocations: 37.7 kB / 381.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/0.2745, allocations: 55.39 kB / 381.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.2746, allocations: 332.4 kB / 381.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.2747, allocations: 69.42 kB / 381.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.2749, allocations: 137.1 kB / 381.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.2752, allocations: 221.4 kB / 382 MB, free: 11.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2752, allocations: 1 kB / 382 MB, free: 11.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004467/0.2756, allocations: 250.9 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2757, allocations: 10.55 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2757, allocations: 3.422 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.2757, allocations: 4.25 kB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.2759, allocations: 41.14 kB / 382.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.2759, allocations: 3.312 kB / 382.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.2761, allocations: 34.66 kB / 382.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.2761, allocations: 8.094 kB / 382.3 MB, free: 11.44 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.0001225/0.2763, allocations: 162.8 kB / 382.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.2763, allocations: 16.47 kB / 382.5 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002859/0.2766, allocations: 134.5 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.2766, allocations: 2.156 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2766, allocations: 1.156 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2767, allocations: 1.844 kB / 382.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000613/0.2773, allocations: 483 kB / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.2773, allocations: 0 / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.2774, allocations: 18.56 kB / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.2774, allocations: 1.125 kB / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.2774, allocations: 3.75 kB / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2774, allocations: 1.719 kB / 383.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2774, allocations: 8.438 kB / 383.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003646/0.2778, allocations: 286.2 kB / 383.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/0.2779, allocations: 102.3 kB / 383.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.2779, allocations: 6.234 kB / 383.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.2781, allocations: 19.16 kB / 383.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.938e-05/0.2782, allocations: 23.2 kB / 383.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.2782, allocations: 9.875 kB / 383.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.775e-05/0.2783, allocations: 150 kB / 383.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2783, allocations: 0 / 383.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.2786, allocations: 38.36 kB / 383.8 MB, free: 10.57 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: 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.0005764/0.2792, allocations: 0.8333 MB / 384.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003894/0.2796, allocations: 171.2 kB / 384.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2796, allocations: 1.25 kB / 384.8 MB, free: 9.797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001862/0.2798, allocations: 77.45 kB / 384.8 MB, free: 9.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.2801, allocations: 39.98 kB / 384.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.2824, allocations: 2.241 MB / 387.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.2825, allocations: 0.7322 MB / 387.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2827, allocations: 35.97 kB / 387.9 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.2828, allocations: 64.52 kB / 388 MB, free: 7.32 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2828, allocations: 3.938 kB / 388 MB, free: 7.316 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02697/0.3098, allocations: 4.1 MB / 392.1 MB, free: 6.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.299, allocations: 1.062 kB / 392.1 MB, free: 6.637 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches