Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009819/0.000982, allocations: 96.06 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001069, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 8 kB / 306.7 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1065, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01092/0.1174, allocations: 9.742 MB / 368 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008217/0.1257, allocations: 3.894 MB / 371.8 MB, free: 64 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.21/0.3357, allocations: 64.67 kB / 371.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003077/0.3388, allocations: 0.7318 MB / 372.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003886/0.3427, allocations: 0.868 MB / 373.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.344, allocations: 366.4 kB / 373.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004056/0.3481, allocations: 2.193 MB / 376.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003036/0.3511, allocations: 2.17 MB / 378.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.3534, allocations: 1.066 MB / 379.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.3556, allocations: 1.432 MB / 380.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003282/0.356, allocations: 167 kB / 380.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008189/0.3568, allocations: 259 kB / 381.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.3578, allocations: 0.8899 MB / 382 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007289/0.3586, allocations: 0.6451 MB / 382.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004634/0.3632, allocations: 4.506 MB / 387.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3632, allocations: 0 / 387.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3632, allocations: 0 / 387.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001341/0.3634, allocations: 0 / 387.2 MB, free: 7.129 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007729/0.3711, allocations: 3.32 MB / 390.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.3712, allocations: 9.625 kB / 390.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008329/0.372, allocations: 428.8 kB / 390.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00137/0.3734, allocations: 410.6 kB / 391.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004184/0.3776, allocations: 2.031 MB / 393.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002143/0.3778, allocations: 225.9 kB / 393.6 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000478/0.3783, allocations: 301 kB / 393.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007407/0.3857, allocations: 3.805 MB / 397.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.336e-05/0.3858, allocations: 6.844 kB / 397.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002489/0.3861, allocations: 120.5 kB / 397.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3862, allocations: 153.4 kB / 398 MB, free: 2.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006048/0.3923, allocations: 3.238 MB / 401.2 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02049/0.4128, allocations: 12.16 MB / 413.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.4152, allocations: 1.936 MB / 415.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002897/0.4155, allocations: 206.4 kB / 415.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.4156, allocations: 55.81 kB / 415.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 3.417e-06/0.4156, allocations: 1.75 kB / 415.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01452/0.4301, allocations: 7.335 MB / 422.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.4302, allocations: 72.67 kB / 423 MB, free: 9.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003073/0.4333, allocations: 1.962 MB / 424.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.4334, allocations: 49.7 kB / 425 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.4344, allocations: 1.455 MB / 426.4 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004631/0.4349, allocations: 0.5269 MB / 427 MB, free: 5.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.435, allocations: 40 kB / 427 MB, free: 5.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.4352, allocations: 377.9 kB / 427.4 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4366, allocations: 0.8862 MB / 428.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001701/0.4383, allocations: 1.442 MB / 429.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/0.4399, allocations: 1.111 MB / 430.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.44, allocations: 8 kB / 430.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004806/0.4448, allocations: 2.986 MB / 433.8 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4448, allocations: 17.84 kB / 433.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.4449, allocations: 16 kB / 433.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008232/0.4457, allocations: 364.7 kB / 434.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.4474, allocations: 483.2 kB / 434.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005728/0.4531, allocations: 6.033 MB / 440.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.4549, allocations: 143.7 kB / 440.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.4551, allocations: 79.98 kB / 440.9 MB, free: 7.285 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00194/0.457, allocations: 0.9343 MB / 441.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003945/0.4574, allocations: 217.3 kB / 442.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004124/0.4616, allocations: 2.578 MB / 444.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.4616, allocations: 16 kB / 444.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.4616, allocations: 4 kB / 444.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.4616, allocations: 10.16 kB / 444.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009802/0.4714, allocations: 5.796 MB / 450.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.4715, allocations: 4 kB / 450.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/0.4727, allocations: 299.9 kB / 450.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009184/0.4736, allocations: 379.4 kB / 451.1 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.4738, allocations: 43.98 kB / 451.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006877/0.4807, allocations: 7.545 MB / 458.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4807, allocations: 8.062 kB / 458.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006111/0.4868, allocations: 4.101 MB / 462.8 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/0.4883, allocations: 498.1 kB / 463.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.4886, allocations: 40 kB / 463.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.4897, allocations: 99.88 kB / 463.4 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.49, allocations: 109.1 kB / 463.5 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.652e-05/0.4901, allocations: 50.72 kB / 463.6 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002233/0.4923, allocations: 1.339 MB / 464.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4923, allocations: 0 / 464.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002105/0.4944, allocations: 0.5508 MB / 465.5 MB, free: 13.74 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (149): * Single equations (assignments): 145 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006107/0.5005, allocations: 5.735 MB / 471.2 MB, free: 7.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003832/0.5044, allocations: 2.613 MB / 473.8 MB, free: 5.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.5044, allocations: 4.5 kB / 473.8 MB, free: 5.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/0.5065, allocations: 1.553 MB / 475.4 MB, free: 3.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/0.5091, allocations: 0.494 MB / 475.9 MB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04413/0.5533, allocations: 30.23 MB / 0.4943 GB, free: 3.414 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/0.5554, allocations: 2.317 MB / 0.4965 GB, free: 1.062 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00201/0.5575, allocations: 0.5375 MB / 0.497 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/0.5593, allocations: 1.202 MB / 0.4982 GB, free: 15.37 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5593, allocations: 0 / 0.4982 GB, free: 15.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3182/0.8776, allocations: 50.61 MB / 0.5476 GB, free: 142 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.8778, allocations: 236.1 kB / 0.5479 GB, free: 141.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.375/4.253, allocations: 0 / 0.5479 GB, free: 141.8 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat