Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.PadeDelay2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_PadeDelay2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.PadeDelay2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_PadeDelay2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009489/0.0009489, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 243.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006921/0.000692, allocations: 96.86 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3086/0.3086, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002404, allocations: 11.98 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.274, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.001525/0.2756, allocations: 1.505 MB / 0.5174 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.2772, allocations: 1.304 MB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2773, allocations: 2.938 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.2774, allocations: 25.36 kB / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.652e-05/0.2775, allocations: 21.98 kB / 0.5187 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.2787, allocations: 468.5 kB / 0.5192 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002395/0.279, allocations: 249 kB / 0.5194 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.2791, allocations: 46.45 kB / 0.5195 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.2793, allocations: 97.38 kB / 0.5196 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.2795, allocations: 152.4 kB / 0.5197 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.2795, allocations: 11.5 kB / 0.5197 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008433/0.2804, allocations: 0.6872 MB / 0.5204 GB, free: 34.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2805, allocations: 105.5 kB / 0.5205 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.2806, allocations: 144.3 kB / 0.5206 GB, free: 34.37 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007288/0.2814, allocations: 0.8378 MB / 0.5214 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2814, allocations: 0 / 0.5214 GB, free: 34.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2814, allocations: 0 / 0.5214 GB, free: 34.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2814, allocations: 2.938 kB / 0.5215 GB, free: 34.26 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0009067/0.2823, allocations: 0.6761 MB / 0.5221 GB, free: 33.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2823, allocations: 11.72 kB / 0.5221 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.2824, allocations: 48.94 kB / 0.5222 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.2826, allocations: 44.19 kB / 0.5222 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.2828, allocations: 286.6 kB / 0.5225 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.2828, allocations: 9.969 kB / 0.5225 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.908e-05/0.2829, allocations: 26 kB / 0.5225 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003985/0.2833, allocations: 283.4 kB / 0.5228 GB, free: 33.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.2833, allocations: 4 kB / 0.5228 GB, free: 33.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.388e-05/0.2833, allocations: 7.938 kB / 0.5228 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2834, allocations: 5.688 kB / 0.5228 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000356/0.2837, allocations: 234.5 kB / 0.523 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.2847, allocations: 0.756 MB / 0.5238 GB, free: 32.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.2851, allocations: 291.7 kB / 0.524 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.2854, allocations: 195.9 kB / 0.5242 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.2854, allocations: 2.625 kB / 0.5242 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.2854, allocations: 36.84 kB / 0.5243 GB, free: 32.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.2854, allocations: 4 kB / 0.5243 GB, free: 32.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008423/0.2863, allocations: 0.5471 MB / 0.5248 GB, free: 32.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/0.2863, allocations: 83.73 kB / 0.5249 GB, free: 32.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.2866, allocations: 354.2 kB / 0.5252 GB, free: 31.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.2866, allocations: 37.7 kB / 0.5253 GB, free: 31.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.223e-05/0.2867, allocations: 143 kB / 0.5254 GB, free: 31.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.817e-05/0.2867, allocations: 101.2 kB / 0.5255 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/0.2868, allocations: 7.938 kB / 0.5255 GB, free: 31.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.506e-05/0.2868, allocations: 351.7 kB / 0.5258 GB, free: 31.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.2872, allocations: 286.7 kB / 0.5261 GB, free: 31.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/0.2875, allocations: 344.5 kB / 0.5264 GB, free: 31.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.2906, allocations: 1.768 MB / 0.5282 GB, free: 30.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.2906, allocations: 0 / 0.5282 GB, free: 30.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.000876/0.2915, allocations: 0.7682 MB / 0.5289 GB, free: 30.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2915, allocations: 15.55 kB / 0.5289 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.2916, allocations: 5.25 kB / 0.5289 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2916, allocations: 2.594 kB / 0.5289 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/0.292, allocations: 98.27 kB / 0.529 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.292, allocations: 7.172 kB / 0.529 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.2922, allocations: 68 kB / 0.5291 GB, free: 30.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.2923, allocations: 12.91 kB / 0.5291 GB, free: 30.31 MB / 378.7 MB Warning: Assuming fixed start value for the following 6 variables: padeDelay2a.x[1]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[2]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[3]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[1]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[2]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[3]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001919/0.2924, allocations: 190 kB / 0.5293 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/0.2925, allocations: 28.69 kB / 0.5293 GB, free: 30.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.69e-05/0.2926, allocations: 37.59 kB / 0.5294 GB, free: 30.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2926, allocations: 6.406 kB / 0.5294 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2926, allocations: 2.562 kB / 0.5294 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.2926, allocations: 7.422 kB / 0.5294 GB, free: 30.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003094/0.293, allocations: 335.5 kB / 0.5297 GB, free: 29.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.293, allocations: 3.938 kB / 0.5297 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.2933, allocations: 47.89 kB / 0.5297 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2933, allocations: 0 / 0.5297 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.2934, allocations: 15.81 kB / 0.5298 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2934, allocations: 3.938 kB / 0.5298 GB, free: 29.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2934, allocations: 2.781 kB / 0.5298 GB, free: 29.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008515/0.2942, allocations: 0.7537 MB / 0.5305 GB, free: 29.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.2943, allocations: 109.4 kB / 0.5306 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.2943, allocations: 19.77 kB / 0.5306 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.2946, allocations: 16.8 kB / 0.5306 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.545e-05/0.2947, allocations: 16.39 kB / 0.5307 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.2947, allocations: 6 kB / 0.5307 GB, free: 29.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001417/0.2948, allocations: 218.4 kB / 0.5309 GB, free: 29.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2948, allocations: 3.125 kB / 0.5309 GB, free: 29.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007017/0.2955, allocations: 251.9 kB / 0.5311 GB, free: 29.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (padeDelay2a.x[1],padeDelay2a.x[2],padeDelay2a.x[3],padeDelay2a.x[4],padeDelay2b.x[1],padeDelay2b.x[2],padeDelay2b.x[3],padeDelay2b.x[4],padeDelay1b.x[1],padeDelay1b.x[2],padeDelay1b.x[3],padeDelay1b.x[4],padeDelay1a.x[1],padeDelay1a.x[2],padeDelay1a.x[3],padeDelay1a.x[4]) * 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 (24): * Single equations (assignments): 24 * 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.001304/0.2968, allocations: 1.447 MB / 0.5325 GB, free: 28.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007881/0.2977, allocations: 0.7429 MB / 0.5333 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2977, allocations: 2.625 kB / 0.5333 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.2979, allocations: 194.3 kB / 0.5334 GB, free: 27.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.2984, allocations: 44.47 kB / 0.5335 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.3014, allocations: 2.9 MB / 0.5363 GB, free: 26.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.3016, allocations: 0.8098 MB / 0.5371 GB, free: 25.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.3018, allocations: 104.1 kB / 0.5372 GB, free: 25.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3018, allocations: 0 / 0.5372 GB, free: 25.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.154/5.456, allocations: 7.163 MB / 0.5442 GB, free: 24.19 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_PadeDelay2_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_PadeDelay2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.PadeDelay2.pipe 2>&1)