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: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001572/0.001572, allocations: 117.2 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 202.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2125, allocations: 50.54 MB / 409.9 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002982/0.2155, allocations: 1.882 MB / 411.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2167, allocations: 0.6466 MB / 412.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2169, allocations: 7.938 kB / 412.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.217, allocations: 27.66 kB / 412.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.2172, allocations: 43.66 kB / 412.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.2175, allocations: 75.84 kB / 412.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002477/0.2178, allocations: 167.4 kB / 412.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.218, allocations: 76.23 kB / 412.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.2181, allocations: 71.66 kB / 412.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.2183, allocations: 91.53 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.2183, allocations: 12 kB / 413 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.978e-05/0.2184, allocations: 20 kB / 413 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.076e-05/0.2185, allocations: 43.84 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.764e-05/0.2186, allocations: 87.45 kB / 413.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.2189, allocations: 195 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2189, allocations: 8 kB / 413.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2189, allocations: 0 / 413.4 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.2189, allocations: 0 / 413.4 MB, free: 14.28 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.0008572/0.2198, allocations: 0.5103 MB / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2198, allocations: 8.031 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.22, allocations: 36.78 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.2203, allocations: 248 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.2203, allocations: 12.66 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.2204, allocations: 12.38 kB / 414.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.2207, allocations: 196.1 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.2208, allocations: 0 / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.2208, allocations: 12 kB / 414.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.303e-05/0.2208, allocations: 7.984 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003116/0.2211, allocations: 139.8 kB / 414.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.2222, allocations: 0.7741 MB / 415.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.2225, allocations: 176.9 kB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.2227, allocations: 77.8 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.985e-05/0.2227, allocations: 4 kB / 415.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.223, allocations: 149.1 kB / 415.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.223, allocations: 0 / 415.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005556/0.2236, allocations: 257.5 kB / 416 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.2236, allocations: 77.11 kB / 416 MB, free: 11.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.2238, allocations: 207.1 kB / 416.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.2238, allocations: 33.69 kB / 416.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.2239, allocations: 148.2 kB / 416.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.565e-05/0.224, allocations: 43.64 kB / 416.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-05/0.2241, allocations: 41.7 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.2242, allocations: 334.8 kB / 416.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.2243, allocations: 71.95 kB / 416.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.2245, allocations: 118.8 kB / 417 MB, free: 10.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.2248, allocations: 206.6 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2249, allocations: 3.938 kB / 417.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004296/0.2253, allocations: 249.3 kB / 417.5 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2253, allocations: 8 kB / 417.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2253, allocations: 0 / 417.5 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2254, allocations: 4 kB / 417.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/0.2255, allocations: 35.91 kB / 417.5 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.2255, allocations: 4 kB / 417.5 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.2257, allocations: 32.06 kB / 417.5 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.2257, allocations: 11.98 kB / 417.6 MB, free: 9.766 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.0001245/0.2259, allocations: 141.7 kB / 417.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.708e-05/0.2259, allocations: 15.91 kB / 417.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004377/0.2263, allocations: 215.6 kB / 417.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2264, allocations: 3.984 kB / 417.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2264, allocations: 4.109 kB / 417.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.2264, allocations: 96.89 kB / 418 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2265, allocations: 4 kB / 418 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.2266, allocations: 19.97 kB / 418 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.185e-05/0.2267, allocations: 19.92 kB / 418.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005055/0.2272, allocations: 368.2 kB / 418.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004407/0.2276, allocations: 445.8 kB / 418.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001544/0.2278, allocations: 75.95 kB / 418.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001194/0.2279, allocations: 148.7 kB / 419.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of Backend: time 3e-07/0.2279, allocations: 0 / 419.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006332/0.2286, allocations: 194.2 kB / 419.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of SimCode: time 0.0007793/0.2294, allocations: 0.7792 MB / 420 MB, free: 7.156 MB / 334.1 MB Notification: Performance of Templates: time 0.005449/0.2348, allocations: 2.58 MB / 422.6 MB, free: 4.602 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.0.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