Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001184/0.001184, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2301/0.2301, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 79.88 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4112, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005587/0.4168, allocations: 4.03 MB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.4198, allocations: 1.497 MB / 0.5359 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003916/0.4202, allocations: 13.59 kB / 0.5359 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007956/0.4211, allocations: 248.2 kB / 0.5361 GB, free: 8.848 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002924/0.4214, allocations: 143.4 kB / 0.5363 GB, free: 8.719 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.4218, allocations: 187.1 kB / 0.5365 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006368/0.4225, allocations: 0.6407 MB / 0.5371 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004173/0.4229, allocations: 267.5 kB / 0.5373 GB, free: 8.004 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004038/0.4233, allocations: 239.4 kB / 0.5376 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003125/0.4236, allocations: 260.4 kB / 0.5378 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.75e-05/0.4237, allocations: 61.91 kB / 0.5379 GB, free: 7.656 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.917e-05/0.4238, allocations: 65.41 kB / 0.5379 GB, free: 7.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.4239, allocations: 133.6 kB / 0.5381 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.4242, allocations: 288.6 kB / 0.5383 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007466/0.425, allocations: 0.7125 MB / 0.539 GB, free: 6.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.425, allocations: 0 / 0.539 GB, free: 6.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.425, allocations: 3.938 kB / 0.539 GB, free: 6.762 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.425, allocations: 1.469 kB / 0.539 GB, free: 6.762 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001346/0.4263, allocations: 0.8328 MB / 0.5399 GB, free: 6.062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.4264, allocations: 9.625 kB / 0.5399 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.421e-05/0.4265, allocations: 85.23 kB / 0.5399 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.4266, allocations: 62.84 kB / 0.54 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/0.4273, allocations: 412.6 kB / 0.5404 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.4273, allocations: 35.38 kB / 0.5404 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-05/0.4274, allocations: 51.31 kB / 0.5405 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007782/0.4282, allocations: 464.7 kB / 0.5409 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.4282, allocations: 1.219 kB / 0.5409 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.4283, allocations: 20.16 kB / 0.5409 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.4283, allocations: 11.62 kB / 0.541 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005999/0.4289, allocations: 303.2 kB / 0.5412 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/0.4314, allocations: 1.659 MB / 0.5429 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008829/0.4323, allocations: 380.8 kB / 0.5432 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.4325, allocations: 114.7 kB / 0.5433 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.4326, allocations: 10.64 kB / 0.5433 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.4326, allocations: 36.81 kB / 0.5434 GB, free: 3.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.4326, allocations: 0 / 0.5434 GB, free: 3.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001692/0.4343, allocations: 0.8894 MB / 0.5443 GB, free: 2.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.4344, allocations: 53.62 kB / 0.5443 GB, free: 2.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.4349, allocations: 398.5 kB / 0.5447 GB, free: 2.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.855e-05/0.4349, allocations: 34.92 kB / 0.5447 GB, free: 2.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.4351, allocations: 276.6 kB / 0.545 GB, free: 2.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.106e-05/0.4352, allocations: 93.28 kB / 0.5451 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.4354, allocations: 58.58 kB / 0.5451 GB, free: 1.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4356, allocations: 352.2 kB / 0.5455 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.4358, allocations: 100 kB / 0.5456 GB, free: 1.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.4361, allocations: 161 kB / 0.5457 GB, free: 1.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.4366, allocations: 250.8 kB / 0.5459 GB, free: 1.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.4366, allocations: 1.094 kB / 0.5459 GB, free: 1.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007152/0.4373, allocations: 356 kB / 0.5463 GB, free: 1.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4374, allocations: 6.406 kB / 0.5463 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4374, allocations: 2.281 kB / 0.5463 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001545/0.4375, allocations: 27.72 kB / 0.5463 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003164/0.4379, allocations: 74.88 kB / 0.5464 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.4392, allocations: 1.389 MB / 0.5477 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.4395, allocations: 15.92 kB / 0.5478 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.4395, allocations: 12 kB / 0.5478 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003173/0.4398, allocations: 204.1 kB / 0.548 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001926/0.44, allocations: 152.5 kB / 0.5481 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003373/0.4404, allocations: 239.6 kB / 0.5483 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.322e-06/0.4404, allocations: 0 / 0.5483 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005204/0.4409, allocations: 330.2 kB / 0.5487 GB, free: 14.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.4409, allocations: 12.19 kB / 0.5487 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-06/0.441, allocations: 4 kB / 0.5487 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.654e-05/0.441, allocations: 24.84 kB / 0.5487 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.4413, allocations: 71.84 kB / 0.5488 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009591/0.4423, allocations: 1.375 MB / 0.5501 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.4424, allocations: 12.03 kB / 0.5501 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.4425, allocations: 12 kB / 0.5501 GB, free: 12.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001733/0.4426, allocations: 207.6 kB / 0.5503 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.184e-05/0.4427, allocations: 39.53 kB / 0.5504 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.551e-05/0.4428, allocations: 39.52 kB / 0.5504 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4428, allocations: 7.984 kB / 0.5504 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4428, allocations: 0 / 0.5504 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4428, allocations: 0 / 0.5504 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.4442, allocations: 0.8509 MB / 0.5512 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4442, allocations: 0 / 0.5512 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.4444, allocations: 51.97 kB / 0.5513 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.249e-05/0.4445, allocations: 28.78 kB / 0.5513 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.4446, allocations: 0 / 0.5513 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009557/0.4455, allocations: 1.379 MB / 0.5527 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4455, allocations: 7.969 kB / 0.5527 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007377/0.4463, allocations: 489.3 kB / 0.5531 GB, free: 9.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.4464, allocations: 116.7 kB / 0.5533 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.4465, allocations: 7.984 kB / 0.5533 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.4467, allocations: 11.98 kB / 0.5533 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.4467, allocations: 19.92 kB / 0.5533 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.4467, allocations: 8 kB / 0.5533 GB, free: 9.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004189/0.4472, allocations: 287.1 kB / 0.5536 GB, free: 9.109 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4472, allocations: 0 / 0.5536 GB, free: 9.109 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006324/0.4478, allocations: 144 kB / 0.5537 GB, free: 8.969 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00117/0.449, allocations: 1.023 MB / 0.5547 GB, free: 7.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.4502, allocations: 0.5913 MB / 0.5553 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4502, allocations: 0 / 0.5553 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.4506, allocations: 226.5 kB / 0.5555 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.4511, allocations: 74.06 kB / 0.5556 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/0.4565, allocations: 3.946 MB / 0.5594 GB, free: 2.887 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005242/0.457, allocations: 0.8308 MB / 0.5602 GB, free: 2.027 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.4572, allocations: 43.27 kB / 0.5603 GB, free: 1.988 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.4574, allocations: 167.4 kB / 0.5604 GB, free: 1.824 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4574, allocations: 0 / 0.5604 GB, free: 1.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07125/0.5287, allocations: 8.477 MB / 0.5687 GB, free: 9.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.65, allocations: 13.5 kB / 0.5687 GB, free: 9.492 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)