Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001302/0.001302, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001365/0.001365, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 71.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.2372, allocations: 50.56 MB / 408.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003404/0.2407, allocations: 1.874 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.242, allocations: 0.6505 MB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.2422, allocations: 4 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.2423, allocations: 27.67 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.2425, allocations: 35.66 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.2428, allocations: 75.84 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.2431, allocations: 167.3 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.2433, allocations: 80.23 kB / 411.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.2435, allocations: 75.66 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.2437, allocations: 75.61 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.2438, allocations: 16 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.288e-05/0.2439, allocations: 23.98 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.244, allocations: 47.78 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.2441, allocations: 87.47 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.2444, allocations: 194.2 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2444, allocations: 0 / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2445, allocations: 0 / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2445, allocations: 0 / 412.2 MB, free: 14 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000931/0.2454, allocations: 0.5181 MB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2454, allocations: 8.031 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.34e-05/0.2455, allocations: 46.73 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.2457, allocations: 36.78 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.246, allocations: 236 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.246, allocations: 16.66 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.246, allocations: 12.38 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.2464, allocations: 199.9 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2464, allocations: 0 / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.2465, allocations: 8 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.2465, allocations: 4 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003298/0.2468, allocations: 151.8 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.2481, allocations: 0.7819 MB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.2484, allocations: 165 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.2486, allocations: 69.81 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.2487, allocations: 8 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.2489, allocations: 149.1 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.333e-06/0.249, allocations: 0 / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005866/0.2495, allocations: 257.5 kB / 414.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.2496, allocations: 85.11 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.2498, allocations: 211.1 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.2499, allocations: 29.7 kB / 415.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.25, allocations: 148.3 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.331e-05/0.2501, allocations: 43.64 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.831e-05/0.2501, allocations: 37.7 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2503, allocations: 342.8 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.2505, allocations: 71.95 kB / 415.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.2507, allocations: 121.9 kB / 415.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.251, allocations: 202.6 kB / 416.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2511, allocations: 4 kB / 416.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004649/0.2515, allocations: 253.2 kB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2516, allocations: 4 kB / 416.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2516, allocations: 4 kB / 416.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.2516, allocations: 0 / 416.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2518, allocations: 31.97 kB / 416.4 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2518, allocations: 7.938 kB / 416.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.252, allocations: 31.86 kB / 416.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.252, allocations: 12.16 kB / 416.5 MB, free: 9.418 MB / 334.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.0001605/0.2522, allocations: 145.8 kB / 416.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.446e-05/0.2522, allocations: 20.02 kB / 416.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00047/0.2527, allocations: 210.8 kB / 416.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2527, allocations: 0 / 416.9 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2527, allocations: 4 kB / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2527, allocations: 0 / 416.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003022/0.253, allocations: 273.4 kB / 417.1 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.253, allocations: 8 kB / 417.1 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.2532, allocations: 23.92 kB / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2532, allocations: 0 / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2532, allocations: 0 / 417.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.2532, allocations: 4.859 kB / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2532, allocations: 0 / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004196/0.2536, allocations: 237.6 kB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.2537, allocations: 101 kB / 417.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.2537, allocations: 4 kB / 417.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.2539, allocations: 11.98 kB / 417.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.254, allocations: 19.97 kB / 417.5 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.254, allocations: 4 kB / 417.5 MB, free: 8.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.2541, allocations: 144.7 kB / 417.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2541, allocations: 0 / 417.7 MB, free: 8.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002638/0.2544, allocations: 43.89 kB / 417.7 MB, free: 8.086 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.0007898/0.2552, allocations: 0.7828 MB / 418.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.2556, allocations: 179.8 kB / 418.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2556, allocations: 0 / 418.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001928/0.2558, allocations: 79.89 kB / 418.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2562, allocations: 39.97 kB / 418.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002761/0.2589, allocations: 2.182 MB / 421 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.2593, allocations: 0.7358 MB / 421.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.2595, allocations: 37.5 kB / 421.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.558e-05/0.2596, allocations: 55.53 kB / 421.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2596, allocations: 7.938 kB / 421.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.2859, allocations: 4.138 MB / 425.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.769/9.055, allocations: 4.547 kB / 426 MB, free: 15.73 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches