Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 111.2 kB / 17.06 MB, free: 6 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.001287/0.001287, allocations: 196 kB / 18 MB, free: 5.078 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.443/1.443, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009728/0.0009728, allocations: 43.94 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.326, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002877/0.3289, allocations: 1.866 MB / 402.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009795/0.3299, allocations: 0.5804 MB / 403.2 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.33, allocations: 4 kB / 403.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.3301, allocations: 27.67 kB / 403.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.3303, allocations: 35.66 kB / 403.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.3306, allocations: 71.86 kB / 403.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000222/0.3308, allocations: 163.4 kB / 403.5 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.331, allocations: 68.41 kB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.3311, allocations: 71.69 kB / 403.6 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.3313, allocations: 79.56 kB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.682e-05/0.3313, allocations: 12 kB / 403.7 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.935e-05/0.3314, allocations: 31.92 kB / 403.7 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.269e-05/0.3315, allocations: 43.83 kB / 403.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.494e-05/0.3316, allocations: 83.47 kB / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3318, allocations: 180.7 kB / 404 MB, free: 5.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3318, allocations: 4 kB / 404 MB, free: 5.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3318, allocations: 0 / 404 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.3318, allocations: 0 / 404 MB, free: 5.57 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000882/0.3327, allocations: 0.5102 MB / 404.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3328, allocations: 8.031 kB / 404.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.769e-05/0.3328, allocations: 24.66 kB / 404.6 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.3331, allocations: 243.7 kB / 404.8 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.3331, allocations: 12.59 kB / 404.8 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.3332, allocations: 19.94 kB / 404.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003408/0.3335, allocations: 187.8 kB / 405 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3336, allocations: 0 / 405 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.3336, allocations: 7.984 kB / 405 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.209e-05/0.3336, allocations: 12 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002897/0.3339, allocations: 147.8 kB / 405.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.335, allocations: 0.77 MB / 406 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.3353, allocations: 165 kB / 406.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.3354, allocations: 77.8 kB / 406.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.3355, allocations: 8.141 kB / 406.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.3357, allocations: 144.3 kB / 406.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.3357, allocations: 4 kB / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005317/0.3363, allocations: 253.5 kB / 406.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3363, allocations: 89.05 kB / 406.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.3365, allocations: 202.9 kB / 406.9 MB, free: 2.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.3365, allocations: 41.62 kB / 406.9 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.3366, allocations: 136.2 kB / 407 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.3367, allocations: 47.36 kB / 407.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.235e-05/0.3367, allocations: 41.7 kB / 407.1 MB, free: 2.199 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3369, allocations: 334.8 kB / 407.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.337, allocations: 75.95 kB / 407.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.3372, allocations: 126.5 kB / 407.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.3376, allocations: 202.7 kB / 407.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3376, allocations: 112 / 407.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004408/0.338, allocations: 245.2 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3381, allocations: 4 kB / 408.1 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3381, allocations: 4 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3381, allocations: 4 kB / 408.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.3383, allocations: 35.91 kB / 408.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3383, allocations: 0 / 408.1 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.3384, allocations: 32.02 kB / 408.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.3385, allocations: 8 kB / 408.2 MB, free: 1.09 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001239/0.3386, allocations: 150.2 kB / 408.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.3386, allocations: 19.8 kB / 408.4 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004072/0.3391, allocations: 214.8 kB / 408.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.3391, allocations: 4 kB / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3391, allocations: 0 / 408.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3391, allocations: 3.984 kB / 408.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.3393, allocations: 277.4 kB / 408.8 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3393, allocations: 96 / 408.8 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.3394, allocations: 23.92 kB / 408.9 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3395, allocations: 0 / 408.9 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.3395, allocations: 0 / 408.9 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.3395, allocations: 7.984 kB / 408.9 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3395, allocations: 3.938 kB / 408.9 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.3399, allocations: 229.6 kB / 409.1 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.755e-05/0.3399, allocations: 100.8 kB / 409.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.34, allocations: 0 / 409.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.3401, allocations: 19.97 kB / 409.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.3402, allocations: 15.98 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.3402, allocations: 4 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.3403, allocations: 144.5 kB / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3403, allocations: 4 kB / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.3406, allocations: 43.92 kB / 409.4 MB, free: 15.74 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001593/0.3407, allocations: 107.1 kB / 409.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003803/0.3411, allocations: 168.4 kB / 409.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3411, allocations: 4 kB / 409.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.3413, allocations: 84.58 kB / 409.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.3417, allocations: 44.11 kB / 409.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006611/0.3423, allocations: 369.3 kB / 410.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.3427, allocations: 0.7397 MB / 410.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3428, allocations: 37.45 kB / 411 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.769e-05/0.3429, allocations: 19.44 kB / 411 MB, free: 14.13 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3429, allocations: 0 / 411 MB, free: 14.13 MB / 334.1 MB Notification: Performance of Templates: time 0.005035/0.3479, allocations: 2.121 MB / 413.1 MB, free: 12.03 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches