Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_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.001054/0.001054, allocations: 101 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001491/0.001491, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 227.3 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 4 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1198, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007718/0.1276, allocations: 7.193 MB / 365.5 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004923/0.1326, allocations: 2.561 MB / 368.1 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009698/0.1336, allocations: 23.94 kB / 368.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.135, allocations: 453.3 kB / 368.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009839/0.1359, allocations: 341.4 kB / 368.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006905/0.1367, allocations: 243.7 kB / 369.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001657/0.1383, allocations: 1.351 MB / 370.5 MB, free: 1.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007209/0.139, allocations: 440.4 kB / 370.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007021/0.1398, allocations: 449.9 kB / 371.3 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005386/0.1403, allocations: 0.4897 MB / 371.8 MB, free: 404 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.1404, allocations: 60 kB / 371.9 MB, free: 344 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002769/0.1407, allocations: 104 kB / 372 MB, free: 240 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.1409, allocations: 195 kB / 372.2 MB, free: 44 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2552/0.3961, allocations: 251.3 kB / 372.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002485/0.3986, allocations: 1.323 MB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.3987, allocations: 0.9375 kB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.357e-06/0.3987, allocations: 0.5312 kB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.714e-05/0.3987, allocations: 0 / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002891/0.4016, allocations: 1.319 MB / 375.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.4017, allocations: 8.812 kB / 375.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000259/0.402, allocations: 152.3 kB / 375.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007405/0.4027, allocations: 187.8 kB / 375.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.4043, allocations: 0.7435 MB / 376.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.4044, allocations: 76.64 kB / 376.2 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.4046, allocations: 106.9 kB / 376.3 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.4068, allocations: 0.955 MB / 377.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.4069, allocations: 6.781 kB / 377.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.82e-05/0.4069, allocations: 41.88 kB / 377.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.407, allocations: 27.97 kB / 377.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.4083, allocations: 0.6422 MB / 378 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00672/0.415, allocations: 4.14 MB / 382.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.4162, allocations: 459.9 kB / 382.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.4165, allocations: 168.4 kB / 382.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.555e-05/0.4165, allocations: 7.703 kB / 382.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.4165, allocations: 37.41 kB / 382.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.344e-06/0.4166, allocations: 0 / 382.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002784/0.4193, allocations: 1.351 MB / 384.1 MB, free: 6.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.4194, allocations: 141.1 kB / 384.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00146/0.4209, allocations: 0.8834 MB / 385.2 MB, free: 6.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.4209, allocations: 33.92 kB / 385.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/0.4213, allocations: 0.5867 MB / 385.8 MB, free: 6.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.837e-05/0.4214, allocations: 147.6 kB / 385.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.4214, allocations: 18.72 kB / 386 MB, free: 6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.4215, allocations: 333.1 kB / 386.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.4218, allocations: 165.7 kB / 386.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.4223, allocations: 0.4944 MB / 386.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.4228, allocations: 250.5 kB / 387.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.4228, allocations: 2.906 kB / 387.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001306/0.4241, allocations: 0.7514 MB / 387.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002631/0.4244, allocations: 397 kB / 388.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/0.4244, allocations: 13.66 kB / 388.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.4246, allocations: 36.14 kB / 388.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000712/0.4253, allocations: 173 kB / 388.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009915/0.4264, allocations: 1.289 MB / 389.8 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009001/0.4273, allocations: 39.02 kB / 389.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.009e-05/0.4273, allocations: 35.59 kB / 389.9 MB, free: 3.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.4274, allocations: 9.547 kB / 389.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00119/0.4286, allocations: 0.6164 MB / 390.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.4286, allocations: 9.875 kB / 390.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001124/0.4287, allocations: 35.59 kB / 390.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005559/0.4293, allocations: 167.3 kB / 390.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006487/0.4299, allocations: 1.298 MB / 392 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006735/0.4306, allocations: 30.5 kB / 392.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/0.4307, allocations: 38.09 kB / 392.1 MB, free: 2.105 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0006347/0.4313, allocations: 341.7 kB / 392.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.4315, allocations: 95.86 kB / 392.5 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007944/0.4323, allocations: 443.9 kB / 393 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.4323, allocations: 4 kB / 393 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.4323, allocations: 0 / 393 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.4323, allocations: 4.656 kB / 393 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.4342, allocations: 1.39 MB / 394.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4343, allocations: 6.75 kB / 394.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.4346, allocations: 82.59 kB / 394.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.024e-05/0.4347, allocations: 22.86 kB / 394.5 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.4347, allocations: 16.53 kB / 394.5 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007183/0.4355, allocations: 1.271 MB / 395.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4355, allocations: 5.219 kB / 395.8 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.4366, allocations: 0.7273 MB / 396.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.4369, allocations: 210 kB / 396.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.437, allocations: 12.53 kB / 396.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/0.4374, allocations: 31.34 kB / 396.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/0.4375, allocations: 28.38 kB / 396.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.4375, allocations: 9.656 kB / 396.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008832/0.4384, allocations: 0.5999 MB / 397.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4384, allocations: 0 / 397.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001383/0.4398, allocations: 348.2 kB / 397.7 MB, free: 14.5 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.001503/0.4413, allocations: 1.309 MB / 399 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.4431, allocations: 0.976 MB / 400 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.4431, allocations: 1.188 kB / 400 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.4436, allocations: 291.3 kB / 400.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.4448, allocations: 226 kB / 400.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009274/0.4541, allocations: 5.571 MB / 406.1 MB, free: 8.898 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006925/0.4548, allocations: 1.023 MB / 407.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006896/0.4555, allocations: 123.5 kB / 407.2 MB, free: 7.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/0.456, allocations: 396.4 kB / 407.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.456, allocations: 0 / 407.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03586/0.4919, allocations: 18.28 MB / 425.9 MB, free: 5.734 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002558/0.4922, allocations: 233.8 kB / 426.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/2.779, allocations: 0 / 426.1 MB, free: 5.492 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat