Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002514/0.00252, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 92.47 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5889/0.5889, allocations: 43.55 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005225/0.0005227, allocations: 15.98 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1314, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004786/0.1362, allocations: 2.824 MB / 493 MB, free: 8.387 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004033/0.1403, allocations: 1.486 MB / 494.5 MB, free: 6.891 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004758/0.1408, allocations: 19.88 kB / 494.5 MB, free: 6.871 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003904/0.1412, allocations: 91.28 kB / 494.6 MB, free: 6.781 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007033/0.1419, allocations: 195.4 kB / 494.8 MB, free: 6.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.1436, allocations: 411.2 kB / 495.2 MB, free: 6.188 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.145, allocations: 0.5812 MB / 495.8 MB, free: 5.605 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004394/0.1454, allocations: 181.1 kB / 496 MB, free: 5.414 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006679/0.1461, allocations: 318.7 kB / 496.3 MB, free: 5.102 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006066/0.1467, allocations: 314.4 kB / 496.6 MB, free: 4.793 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.806e-05/0.1469, allocations: 20 kB / 496.6 MB, free: 4.773 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.147, allocations: 27.94 kB / 496.6 MB, free: 4.746 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002455/0.1472, allocations: 155.4 kB / 496.8 MB, free: 4.594 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001695/0.1474, allocations: 137.3 kB / 496.9 MB, free: 4.453 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008191/0.1482, allocations: 0.5339 MB / 497.5 MB, free: 3.918 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.1483, allocations: 0 / 497.5 MB, free: 3.918 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1483, allocations: 4 kB / 497.5 MB, free: 3.914 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.1483, allocations: 0 / 497.5 MB, free: 3.914 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003504/0.1518, allocations: 1.059 MB / 498.5 MB, free: 2.801 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1519, allocations: 8.031 kB / 498.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.1522, allocations: 102.8 kB / 498.6 MB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001583/0.1538, allocations: 0.5266 MB / 499.2 MB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.601e-05/0.1539, allocations: 37 kB / 499.2 MB, free: 2.086 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.154, allocations: 55.91 kB / 499.3 MB, free: 2.031 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.156, allocations: 0.6291 MB / 499.9 MB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.299e-05/0.1561, allocations: 0 / 499.9 MB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.183e-05/0.1562, allocations: 16 kB / 499.9 MB, free: 1.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.1562, allocations: 12 kB / 499.9 MB, free: 1.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.1582, allocations: 0.4977 MB / 0.4887 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3281/0.4864, allocations: 2.689 MB / 0.4913 GB, free: 41.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.4886, allocations: 0.5836 MB / 0.4919 GB, free: 41.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.952e-05/0.4887, allocations: 6.609 kB / 0.4919 GB, free: 41.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.4888, allocations: 37.86 kB / 0.4919 GB, free: 41.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.176e-06/0.4888, allocations: 3.531 kB / 0.4919 GB, free: 41.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.004384/0.4932, allocations: 1.204 MB / 0.4931 GB, free: 41.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.4933, allocations: 139 kB / 0.4932 GB, free: 40.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/0.4947, allocations: 0.6524 MB / 0.4939 GB, free: 40.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.4948, allocations: 38.53 kB / 0.4939 GB, free: 40.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.4951, allocations: 376.6 kB / 0.4943 GB, free: 40.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.4953, allocations: 168.7 kB / 0.4944 GB, free: 40.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.4954, allocations: 14.69 kB / 0.4944 GB, free: 40.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.4955, allocations: 332.7 kB / 0.4948 GB, free: 40.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.4967, allocations: 286.6 kB / 0.495 GB, free: 40.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.4979, allocations: 441.3 kB / 0.4955 GB, free: 39.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.4992, allocations: 337.7 kB / 0.4958 GB, free: 39.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.4992, allocations: 1.375 kB / 0.4958 GB, free: 39.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002727/0.502, allocations: 0.7818 MB / 0.4965 GB, free: 39.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003785/0.5024, allocations: 1.746 MB / 0.4982 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.5024, allocations: 8.219 kB / 0.4983 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.512e-05/0.5024, allocations: 8.719 kB / 0.4983 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5037, allocations: 160.1 kB / 0.4984 GB, free: 38.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-05/0.5038, allocations: 12.77 kB / 0.4984 GB, free: 38.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.5048, allocations: 90.05 kB / 0.4985 GB, free: 38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.206e-05/0.5049, allocations: 26 kB / 0.4985 GB, free: 38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.5049, allocations: 6.047 kB / 0.4985 GB, free: 38 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002483/0.5074, allocations: 0.7123 MB / 0.4992 GB, free: 37.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.5075, allocations: 5.5 kB / 0.4992 GB, free: 37.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.5075, allocations: 8.953 kB / 0.4993 GB, free: 37.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.5087, allocations: 154.4 kB / 0.4994 GB, free: 37.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.949e-05/0.5087, allocations: 17.27 kB / 0.4994 GB, free: 37.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006279/0.5093, allocations: 73.36 kB / 0.4995 GB, free: 37.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.087e-05/0.5094, allocations: 27.12 kB / 0.4995 GB, free: 37.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005164/0.51, allocations: 289.7 kB / 0.4998 GB, free: 37.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.5102, allocations: 75.56 kB / 0.4999 GB, free: 37.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002312/0.5105, allocations: 89.59 kB / 0.4999 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.5105, allocations: 5.75 kB / 0.4999 GB, free: 37.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.5105, allocations: 4.703 kB / 0.5 GB, free: 37.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.5105, allocations: 4.781 kB / 0.5 GB, free: 37.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.5125, allocations: 0.8616 MB / 0.5008 GB, free: 37.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.5125, allocations: 0 / 0.5008 GB, free: 37.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.5138, allocations: 120 kB / 0.5009 GB, free: 37.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.5138, allocations: 0 / 0.5009 GB, free: 37.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.5139, allocations: 21.5 kB / 0.5009 GB, free: 37.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.5139, allocations: 2.781 kB / 0.5009 GB, free: 37.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5139, allocations: 2.906 kB / 0.5009 GB, free: 37.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00334/0.5172, allocations: 1.235 MB / 0.5021 GB, free: 36.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004208/0.5177, allocations: 196 kB / 0.5023 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.5179, allocations: 16.83 kB / 0.5023 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009388/0.5188, allocations: 66.34 kB / 0.5024 GB, free: 36.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/0.519, allocations: 38.16 kB / 0.5024 GB, free: 36.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.5191, allocations: 16.06 kB / 0.5025 GB, free: 36.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009171/0.52, allocations: 460.5 kB / 0.5029 GB, free: 36.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.52, allocations: 0 / 0.5029 GB, free: 36.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001185/0.5212, allocations: 193.8 kB / 0.5031 GB, free: 36.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001726/0.5214, allocations: 110.8 kB / 0.5032 GB, free: 36.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.5251, allocations: 1.014 MB / 0.5042 GB, free: 35.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.5252, allocations: 4.188 kB / 0.5042 GB, free: 35.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.5264, allocations: 298 kB / 0.5045 GB, free: 35.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00156/0.528, allocations: 176.6 kB / 0.5046 GB, free: 35.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.5323, allocations: 1.762 MB / 0.5064 GB, free: 34.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006014/0.533, allocations: 0.9686 MB / 0.5073 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004427/0.5334, allocations: 44.81 kB / 0.5074 GB, free: 34.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5334, allocations: 0 / 0.5074 GB, free: 34.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01964/0.5531, allocations: 8.503 MB / 0.5157 GB, free: 33.35 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches