Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous_InitialState,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_trunk_ModelicaTest.Blocks.Continuous_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,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_trunk_ModelicaTest.Blocks.Continuous_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00119/0.00119, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 200.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 45.92 MB / 344 MB, free: 12.15 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003614, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2019, allocations: 63.46 MB / 481.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.00405/0.206, allocations: 2.836 MB / 484.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003715/0.2098, allocations: 1.49 MB / 485.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000528/0.2103, allocations: 19.88 kB / 485.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005346/0.2109, allocations: 91.27 kB / 485.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000459/0.2113, allocations: 187.4 kB / 486 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.2126, allocations: 426.3 kB / 486.4 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.2137, allocations: 0.5619 MB / 487 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003877/0.2141, allocations: 177.2 kB / 487.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006034/0.2147, allocations: 310.7 kB / 487.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005048/0.2152, allocations: 326.4 kB / 487.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.279e-05/0.2153, allocations: 20 kB / 487.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.2154, allocations: 24 kB / 487.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001823/0.2156, allocations: 147.5 kB / 488 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.2157, allocations: 137.2 kB / 488.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005873/0.2163, allocations: 0.5338 MB / 488.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.2163, allocations: 4 kB / 488.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2163, allocations: 0 / 488.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.2164, allocations: 0 / 488.6 MB, free: 14.14 MB / 366.1 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.002287/0.2187, allocations: 1.055 MB / 489.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.2187, allocations: 12.03 kB / 489.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002601/0.219, allocations: 98.97 kB / 489.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009972/0.22, allocations: 0.5304 MB / 490.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.2201, allocations: 40.98 kB / 490.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.834e-05/0.2202, allocations: 56 kB / 490.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.2214, allocations: 0.6338 MB / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.2214, allocations: 0 / 491 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.349e-05/0.2214, allocations: 16 kB / 491.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.2215, allocations: 12 kB / 491.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.2226, allocations: 0.49 MB / 491.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004012/0.2266, allocations: 2.702 MB / 494.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.2279, allocations: 0.578 MB / 494.8 MB, free: 7.645 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.482e-05/0.228, allocations: 8 kB / 494.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.689e-05/0.228, allocations: 38.56 kB / 494.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.765e-06/0.228, allocations: 0 / 494.9 MB, free: 7.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002841/0.2309, allocations: 1.213 MB / 496.1 MB, free: 6.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.231, allocations: 162.2 kB / 496.3 MB, free: 6.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.2321, allocations: 0.6528 MB / 496.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.2322, allocations: 33.7 kB / 496.9 MB, free: 5.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003513/0.2325, allocations: 360 kB / 497.3 MB, free: 5.109 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.2327, allocations: 177.5 kB / 497.5 MB, free: 4.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.2328, allocations: 12 kB / 497.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.233, allocations: 330 kB / 497.8 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006526/0.2337, allocations: 285.1 kB / 498.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007756/0.2344, allocations: 454 kB / 498.5 MB, free: 3.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006976/0.2351, allocations: 334 kB / 498.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2352, allocations: 0 / 498.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001699/0.2369, allocations: 0.8302 MB / 499.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009663/0.2378, allocations: 1.746 MB / 0.4897 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.2379, allocations: 4 kB / 0.4897 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.666e-05/0.2379, allocations: 8 kB / 0.4897 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007022/0.2386, allocations: 171.7 kB / 0.4899 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.2386, allocations: 8 kB / 0.4899 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.2392, allocations: 87.62 kB / 0.4899 GB, free: 496 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.2393, allocations: 27.98 kB / 0.49 GB, free: 468 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/0.2393, allocations: 4 kB / 0.49 GB, free: 464 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001462/0.2407, allocations: 0.7213 MB / 0.4907 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2408, allocations: 4 kB / 0.4907 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.2408, allocations: 8 kB / 0.4907 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/0.2414, allocations: 160.2 kB / 0.4908 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.2414, allocations: 11.98 kB / 0.4909 GB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/0.242, allocations: 79.55 kB / 0.4909 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.64e-05/0.242, allocations: 35.95 kB / 0.491 GB, free: 15.44 MB / 382.1 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.000448/0.2425, allocations: 297.2 kB / 0.4913 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.2426, allocations: 75.06 kB / 0.4913 GB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.2428, allocations: 90.22 kB / 0.4914 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.2429, allocations: 12.02 kB / 0.4914 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.2429, allocations: 0 / 0.4914 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2429, allocations: 0 / 0.4914 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.2443, allocations: 0.8609 MB / 0.4923 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2443, allocations: 0 / 0.4923 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.245, allocations: 119.9 kB / 0.4924 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.245, allocations: 0 / 0.4924 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.666e-05/0.245, allocations: 19.94 kB / 0.4924 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.2451, allocations: 0 / 0.4924 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.046e-05/0.2451, allocations: 15.94 kB / 0.4924 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/0.2473, allocations: 1.215 MB / 0.4936 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.2476, allocations: 200.1 kB / 0.4938 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.998e-05/0.2477, allocations: 16 kB / 0.4938 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.2482, allocations: 67.88 kB / 0.4939 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2483, allocations: 35.94 kB / 0.4939 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.2484, allocations: 23.94 kB / 0.4939 GB, free: 12.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000711/0.2491, allocations: 451 kB / 0.4944 GB, free: 11.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2491, allocations: 4 kB / 0.4944 GB, free: 11.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008342/0.25, allocations: 196 kB / 0.4945 GB, free: 11.66 MB / 382.1 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.0001812/0.2501, allocations: 107 kB / 0.4946 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002307/0.2525, allocations: 1.013 MB / 0.4956 GB, free: 10.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2525, allocations: 8 kB / 0.4956 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000699/0.2532, allocations: 299.7 kB / 0.4959 GB, free: 10.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009116/0.2541, allocations: 159.1 kB / 0.4961 GB, free: 10.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.257, allocations: 1.713 MB / 0.4978 GB, free: 8.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.2576, allocations: 0.9731 MB / 0.4987 GB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004875/0.2581, allocations: 148.7 kB / 0.4988 GB, free: 7.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.2583, allocations: 39.44 kB / 0.4989 GB, free: 7.145 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2583, allocations: 8 kB / 0.4989 GB, free: 7.137 MB / 382.1 MB Notification: Performance of Templates: time 0.01362/0.2719, allocations: 6.559 MB / 0.5053 GB, free: 0.6328 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches