Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001074/0.001074, allocations: 202.3 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.0008259, allocations: 88.62 kB / 295.1 MB, free: 10.08 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1697/0.1697, allocations: 44.84 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002264, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.08938, allocations: 62.96 MB / 0.5153 GB, free: 2.785 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.197/0.2865, allocations: 3.897 MB / 0.5191 GB, free: 9.816 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.2888, allocations: 1.537 MB / 0.5206 GB, free: 9.613 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003407/0.2892, allocations: 15.84 kB / 0.5206 GB, free: 9.609 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005309/0.2897, allocations: 243.6 kB / 0.5209 GB, free: 9.527 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.29, allocations: 119.1 kB / 0.521 GB, free: 9.477 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004447/0.2904, allocations: 179 kB / 0.5212 GB, free: 9.469 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006872/0.2911, allocations: 0.7379 MB / 0.5219 GB, free: 9.098 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003791/0.2915, allocations: 277.6 kB / 0.5221 GB, free: 8.984 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.2918, allocations: 224 kB / 0.5224 GB, free: 8.879 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002643/0.2921, allocations: 260.8 kB / 0.5226 GB, free: 8.746 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.2922, allocations: 30.5 kB / 0.5226 GB, free: 8.746 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.328e-05/0.2922, allocations: 30.72 kB / 0.5227 GB, free: 8.746 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-05/0.2923, allocations: 108.5 kB / 0.5228 GB, free: 8.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.77e-05/0.2924, allocations: 145.6 kB / 0.5229 GB, free: 8.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007474/0.2932, allocations: 0.6938 MB / 0.5236 GB, free: 8.445 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2932, allocations: 4 kB / 0.5236 GB, free: 8.441 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2932, allocations: 4.969 kB / 0.5236 GB, free: 8.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.2932, allocations: 0 / 0.5236 GB, free: 8.438 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001311/0.2945, allocations: 0.9166 MB / 0.5245 GB, free: 7.789 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2946, allocations: 9.094 kB / 0.5245 GB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.2947, allocations: 80.81 kB / 0.5246 GB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.2953, allocations: 475.5 kB / 0.525 GB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.2953, allocations: 45.22 kB / 0.5251 GB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.171e-05/0.2954, allocations: 64.52 kB / 0.5251 GB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.2965, allocations: 0.595 MB / 0.5257 GB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.2965, allocations: 1.188 kB / 0.5257 GB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.2965, allocations: 26.23 kB / 0.5257 GB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.2966, allocations: 15.47 kB / 0.5258 GB, free: 7.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008982/0.2975, allocations: 446.9 kB / 0.5262 GB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003006/0.3005, allocations: 2.193 MB / 0.5283 GB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3016, allocations: 0.6087 MB / 0.5289 GB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.302, allocations: 178.4 kB / 0.5291 GB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.302, allocations: 4.469 kB / 0.5291 GB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.3021, allocations: 41.03 kB / 0.5291 GB, free: 5.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 1.973e-06/0.3021, allocations: 0.75 kB / 0.5291 GB, free: 5.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.002235/0.3043, allocations: 1.209 MB / 0.5303 GB, free: 4.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.207e-05/0.3044, allocations: 55.83 kB / 0.5304 GB, free: 4.297 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005682/0.3049, allocations: 0.5064 MB / 0.5309 GB, free: 4.055 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.305, allocations: 31.48 kB / 0.5309 GB, free: 4.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.3051, allocations: 347.9 kB / 0.5312 GB, free: 3.742 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.3052, allocations: 125.4 kB / 0.5313 GB, free: 3.648 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/0.3053, allocations: 9 kB / 0.5314 GB, free: 3.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.94e-05/0.3054, allocations: 368.9 kB / 0.5317 GB, free: 3.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.3057, allocations: 145.4 kB / 0.5318 GB, free: 3.258 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.306, allocations: 232.9 kB / 0.5321 GB, free: 3.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.3063, allocations: 177.4 kB / 0.5322 GB, free: 3.047 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3064, allocations: 1.938 kB / 0.5322 GB, free: 3.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008291/0.3072, allocations: 0.4941 MB / 0.5327 GB, free: 2.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.3072, allocations: 150 kB / 0.5329 GB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.3073, allocations: 2.688 kB / 0.5329 GB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001198/0.3074, allocations: 21.27 kB / 0.5329 GB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004144/0.3078, allocations: 113.3 kB / 0.533 GB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006282/0.3084, allocations: 1.277 MB / 0.5342 GB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.3087, allocations: 33.86 kB / 0.5343 GB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.486e-05/0.3088, allocations: 12.16 kB / 0.5343 GB, free: 1.312 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.969e-06/0.3088, allocations: 3.812 kB / 0.5343 GB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005698/0.3093, allocations: 367.2 kB / 0.5346 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3094, allocations: 3.094 kB / 0.5346 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.035e-05/0.3094, allocations: 32.88 kB / 0.5347 GB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/0.3098, allocations: 91.78 kB / 0.5348 GB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006127/0.3104, allocations: 1.285 MB / 0.536 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.3106, allocations: 21.83 kB / 0.536 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.3107, allocations: 15.69 kB / 0.536 GB, free: 15.8 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002774/0.3109, allocations: 264.4 kB / 0.5363 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3111, allocations: 57.42 kB / 0.5364 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.245e-05/0.3112, allocations: 58 kB / 0.5364 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.3112, allocations: 3.547 kB / 0.5364 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3112, allocations: 1.375 kB / 0.5364 GB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.3112, allocations: 5.406 kB / 0.5364 GB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.3129, allocations: 1.085 MB / 0.5375 GB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3129, allocations: 5.25 kB / 0.5375 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.3132, allocations: 74.08 kB / 0.5376 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.93e-05/0.3133, allocations: 22.42 kB / 0.5376 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.3133, allocations: 11.33 kB / 0.5376 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009147/0.3143, allocations: 1.274 MB / 0.5388 GB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/0.3143, allocations: 9.141 kB / 0.5388 GB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.3154, allocations: 0.6667 MB / 0.5395 GB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.3156, allocations: 131.2 kB / 0.5396 GB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.325e-05/0.3156, allocations: 11.2 kB / 0.5396 GB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.3159, allocations: 34.25 kB / 0.5397 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.316, allocations: 26.86 kB / 0.5397 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.316, allocations: 15.36 kB / 0.5397 GB, free: 13.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004443/0.3165, allocations: 362.5 kB / 0.54 GB, free: 12.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3165, allocations: 0 / 0.54 GB, free: 12.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006295/0.3171, allocations: 177.2 kB / 0.5402 GB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * 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 (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001413/0.3173, allocations: 109.7 kB / 0.5403 GB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001412/0.3187, allocations: 0.7542 MB / 0.5411 GB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3187, allocations: 0.875 kB / 0.5411 GB, free: 12.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004848/0.3192, allocations: 288.1 kB / 0.5413 GB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.3199, allocations: 105.3 kB / 0.5414 GB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002362/0.3222, allocations: 1.603 MB / 0.543 GB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.3228, allocations: 0.8931 MB / 0.5439 GB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.3229, allocations: 39.19 kB / 0.5439 GB, free: 10.42 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3229, allocations: 0 / 0.5439 GB, free: 10.42 MB / 362.7 MB Notification: Performance of Templates: time 0.01429/0.3372, allocations: 9.454 MB / 0.5531 GB, free: 5.641 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled --alarm=480 > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)