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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009156/0.0009156, 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.114/1.114, allocations: 226.5 MB / 243.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006923/0.0006923, allocations: 99.97 kB / 295.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2655/0.2655, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002543, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2296, allocations: 62.95 MB / 0.516 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.003137/0.2328, allocations: 3.911 MB / 0.5198 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.2343, allocations: 1.53 MB / 0.5213 GB, free: 33.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.2345, allocations: 15.66 kB / 0.5213 GB, free: 33.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004455/0.235, allocations: 246.6 kB / 0.5215 GB, free: 33.19 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.2352, allocations: 125.6 kB / 0.5216 GB, free: 33.1 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.2355, allocations: 169.3 kB / 0.5218 GB, free: 33.01 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.236, allocations: 0.7752 MB / 0.5226 GB, free: 32.61 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003855/0.2364, allocations: 361.8 kB / 0.5229 GB, free: 32.4 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.2366, allocations: 216.2 kB / 0.5231 GB, free: 32.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.2368, allocations: 264.2 kB / 0.5234 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-05/0.2368, allocations: 31.09 kB / 0.5234 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.337e-05/0.2369, allocations: 29.81 kB / 0.5234 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.237, allocations: 109.4 kB / 0.5235 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2371, allocations: 317.9 kB / 0.5238 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.2375, allocations: 0.7028 MB / 0.5245 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2375, allocations: 0 / 0.5245 GB, free: 31.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2375, allocations: 3.938 kB / 0.5245 GB, free: 31.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.2376, allocations: 3.938 kB / 0.5245 GB, free: 31.7 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001084/0.2386, allocations: 0.9053 MB / 0.5254 GB, free: 31.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.2387, allocations: 7.25 kB / 0.5254 GB, free: 31.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.152e-05/0.2388, allocations: 106.7 kB / 0.5255 GB, free: 30.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.537e-05/0.2389, allocations: 81.97 kB / 0.5256 GB, free: 30.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.2393, allocations: 487.9 kB / 0.5261 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.2394, allocations: 46.62 kB / 0.5261 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.2394, allocations: 71.84 kB / 0.5262 GB, free: 30.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.2403, allocations: 0.6001 MB / 0.5268 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.2403, allocations: 6.781 kB / 0.5268 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.2404, allocations: 21.75 kB / 0.5268 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.2404, allocations: 18.91 kB / 0.5268 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007355/0.2411, allocations: 443.7 kB / 0.5272 GB, free: 30.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.2434, allocations: 2.184 MB / 0.5294 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.2443, allocations: 0.6138 MB / 0.53 GB, free: 28.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.2446, allocations: 177.1 kB / 0.5301 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.2447, allocations: 8.391 kB / 0.5301 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.302e-05/0.2447, allocations: 38.56 kB / 0.5302 GB, free: 28.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.342e-06/0.2447, allocations: 2.656 kB / 0.5302 GB, free: 28.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.0018/0.2465, allocations: 1.19 MB / 0.5313 GB, free: 27.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.2465, allocations: 54.88 kB / 0.5314 GB, free: 27.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.247, allocations: 0.5117 MB / 0.5319 GB, free: 27.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.247, allocations: 32.73 kB / 0.5319 GB, free: 27.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.2471, allocations: 354.2 kB / 0.5323 GB, free: 26.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.626e-05/0.2472, allocations: 120.1 kB / 0.5324 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.2472, allocations: 11.06 kB / 0.5324 GB, free: 26.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.2473, allocations: 361.8 kB / 0.5327 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.2476, allocations: 155.2 kB / 0.5329 GB, free: 26.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.2479, allocations: 230.3 kB / 0.5331 GB, free: 26.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005643/0.2484, allocations: 392.9 kB / 0.5335 GB, free: 26.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2484, allocations: 0 / 0.5335 GB, free: 26.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007368/0.2492, allocations: 0.4894 MB / 0.5339 GB, free: 25.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.2492, allocations: 160.6 kB / 0.5341 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2493, allocations: 2.844 kB / 0.5341 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001123/0.2494, allocations: 24.23 kB / 0.5341 GB, free: 25.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.2497, allocations: 113.9 kB / 0.5342 GB, free: 25.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005928/0.2503, allocations: 1.278 MB / 0.5355 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.2506, allocations: 30.98 kB / 0.5355 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.2506, allocations: 18.81 kB / 0.5355 GB, free: 24.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.217e-06/0.2506, allocations: 5.375 kB / 0.5355 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005194/0.2512, allocations: 359.3 kB / 0.5359 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.2512, allocations: 3.031 kB / 0.5359 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.195e-05/0.2512, allocations: 32.69 kB / 0.5359 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.2516, allocations: 89.64 kB / 0.536 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005071/0.2521, allocations: 1.283 MB / 0.5372 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.2523, allocations: 19.39 kB / 0.5373 GB, free: 22.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2523, allocations: 15.75 kB / 0.5373 GB, free: 22.79 MB / 378.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.0001739/0.2525, allocations: 258.4 kB / 0.5375 GB, free: 22.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.069e-05/0.2525, allocations: 57 kB / 0.5376 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.133e-05/0.2526, allocations: 66.25 kB / 0.5376 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2526, allocations: 6.062 kB / 0.5377 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2527, allocations: 2.969 kB / 0.5377 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2527, allocations: 0 / 0.5377 GB, free: 22.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.254, allocations: 1.089 MB / 0.5387 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.254, allocations: 2.562 kB / 0.5387 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.2543, allocations: 69.75 kB / 0.5388 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.504e-05/0.2544, allocations: 26.58 kB / 0.5388 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.2544, allocations: 10.69 kB / 0.5388 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005225/0.2549, allocations: 1.278 MB / 0.5401 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2549, allocations: 8.609 kB / 0.5401 GB, free: 20.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008739/0.2558, allocations: 0.6615 MB / 0.5407 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.387e-05/0.2559, allocations: 136.6 kB / 0.5409 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.256, allocations: 10.56 kB / 0.5409 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.2562, allocations: 35.38 kB / 0.5409 GB, free: 20.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.955e-05/0.2563, allocations: 24.77 kB / 0.5409 GB, free: 20.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.2563, allocations: 9.25 kB / 0.5409 GB, free: 20.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003114/0.2566, allocations: 364.7 kB / 0.5413 GB, free: 19.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2566, allocations: 0 / 0.5413 GB, free: 19.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005024/0.2572, allocations: 178.8 kB / 0.5415 GB, free: 19.83 MB / 378.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.001042/0.2582, allocations: 1.206 MB / 0.5426 GB, free: 18.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.2593, allocations: 0.7676 MB / 0.5434 GB, free: 18.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2594, allocations: 0 / 0.5434 GB, free: 18.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.2597, allocations: 285.4 kB / 0.5437 GB, free: 18.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006604/0.2604, allocations: 108.5 kB / 0.5438 GB, free: 18.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004741/0.2652, allocations: 3.649 MB / 0.5473 GB, free: 16.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.2655, allocations: 0.8877 MB / 0.5482 GB, free: 15.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.2658, allocations: 230.4 kB / 0.5484 GB, free: 15.46 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2658, allocations: 1.469 kB / 0.5484 GB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.539/3.805, allocations: 11.33 MB / 0.5595 GB, free: 11.45 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)