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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002246/0.002246, allocations: 188.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 43.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2862, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00338/0.2895, allocations: 1.862 MB / 424.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.2908, allocations: 0.631 MB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.2909, allocations: 7.938 kB / 425.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.291, allocations: 27.66 kB / 425.1 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.2912, allocations: 31.73 kB / 425.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003056/0.2915, allocations: 91.78 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.2918, allocations: 171.5 kB / 425.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.2919, allocations: 50.94 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.2921, allocations: 71.7 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.2923, allocations: 91.55 kB / 425.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.135e-05/0.2923, allocations: 16 kB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.302e-05/0.2924, allocations: 19.98 kB / 425.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-05/0.2925, allocations: 59.7 kB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.131e-05/0.2926, allocations: 75.55 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.2928, allocations: 211.4 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2929, allocations: 4 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2929, allocations: 0 / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.2929, allocations: 0 / 426 MB, free: 11.18 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.0009595/0.2938, allocations: 437.2 kB / 426.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.2939, allocations: 12.03 kB / 426.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.386e-05/0.2939, allocations: 50.73 kB / 426.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.294, allocations: 32.78 kB / 426.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.2943, allocations: 178.1 kB / 426.7 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.2943, allocations: 20.12 kB / 426.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.2944, allocations: 16 kB / 426.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.2948, allocations: 209.9 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.2948, allocations: 3.938 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.2949, allocations: 4 kB / 427 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.6e-05/0.2949, allocations: 11.98 kB / 427 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.2952, allocations: 135.8 kB / 427.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.2965, allocations: 0.7457 MB / 427.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006243/0.2971, allocations: 186.6 kB / 428 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.2972, allocations: 56.83 kB / 428.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.2973, allocations: 15.95 kB / 428.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.2976, allocations: 148.9 kB / 428.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.2976, allocations: 0 / 428.3 MB, free: 8.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007106/0.2983, allocations: 249.4 kB / 428.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.2983, allocations: 85.05 kB / 428.6 MB, free: 8.426 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.2986, allocations: 218.9 kB / 428.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.2986, allocations: 25.7 kB / 428.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.2987, allocations: 140.4 kB / 429 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.166e-05/0.2988, allocations: 35.73 kB / 429 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.775e-05/0.2989, allocations: 69.58 kB / 429.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.299, allocations: 327.2 kB / 429.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2992, allocations: 63.95 kB / 429.4 MB, free: 7.531 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.2994, allocations: 140.5 kB / 429.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003849/0.2997, allocations: 224.2 kB / 429.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2997, allocations: 0 / 429.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004538/0.3002, allocations: 245.8 kB / 430 MB, free: 6.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3002, allocations: 8 kB / 430 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3002, allocations: 4 kB / 430 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3002, allocations: 4 kB / 430 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.3005, allocations: 43.84 kB / 430.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3005, allocations: 7.938 kB / 430.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.3007, allocations: 31.83 kB / 430.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.3007, allocations: 8 kB / 430.1 MB, free: 6.762 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.0001625/0.3009, allocations: 147.9 kB / 430.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.269e-05/0.3009, allocations: 23.84 kB / 430.3 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.3011, allocations: 127 kB / 430.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3012, allocations: 7.938 kB / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3012, allocations: 0 / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3012, allocations: 0 / 430.4 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006632/0.3018, allocations: 457.3 kB / 430.9 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3018, allocations: 4 kB / 430.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.3019, allocations: 19.92 kB / 430.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3019, allocations: 0 / 430.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.302, allocations: 8 kB / 430.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.302, allocations: 0 / 430.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.302, allocations: 0 / 430.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/0.3025, allocations: 288.1 kB / 431.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.189e-05/0.3025, allocations: 27.83 kB / 431.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.3026, allocations: 0 / 431.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3027, allocations: 15.98 kB / 431.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.382e-05/0.3028, allocations: 23.95 kB / 431.3 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3028, allocations: 4.188 kB / 431.3 MB, free: 5.547 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001791/0.303, allocations: 144.6 kB / 431.4 MB, free: 5.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.303, allocations: 7.938 kB / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.3033, allocations: 43.89 kB / 431.5 MB, free: 5.355 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.0008368/0.3041, allocations: 0.8341 MB / 432.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004314/0.3046, allocations: 159.8 kB / 432.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3046, allocations: 0 / 432.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.3048, allocations: 80.02 kB / 432.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.3051, allocations: 24.48 kB / 432.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.3081, allocations: 2.248 MB / 434.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.3085, allocations: 0.7359 MB / 435.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.3086, allocations: 37.59 kB / 435.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.3088, allocations: 59.42 kB / 435.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3088, allocations: 0 / 435.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03333/0.3421, allocations: 4.35 MB / 440 MB, free: 12.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.5, allocations: 6.688 kB / 440 MB, free: 12.76 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.00197941 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.06057476485148]