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.00077/0.00077, allocations: 100.5 kB / 17 MB, free: 6.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008819/0.0008821, allocations: 198.3 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002583, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.132, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.02003/0.1521, allocations: 10.52 MB / 368.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2514/0.4036, allocations: 3.801 MB / 372.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.4063, allocations: 69.62 kB / 372.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.409, allocations: 0.7017 MB / 373.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003925/0.413, allocations: 0.813 MB / 374.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.4146, allocations: 360 kB / 374.6 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007133/0.4218, allocations: 3.371 MB / 377.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004022/0.4258, allocations: 2.164 MB / 380.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.4289, allocations: 1.143 MB / 381.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003793/0.4328, allocations: 1.609 MB / 382.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007412/0.4335, allocations: 168.8 kB / 383 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.435, allocations: 263.8 kB / 383.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.4363, allocations: 0.9292 MB / 384.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.4377, allocations: 0.6452 MB / 384.9 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00516/0.4428, allocations: 4.551 MB / 389.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4429, allocations: 3.984 kB / 389.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4429, allocations: 0 / 389.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001683/0.443, allocations: 0 / 389.4 MB, free: 5.738 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.00754/0.4506, allocations: 3.339 MB / 392.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.4507, allocations: 9.625 kB / 392.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007332/0.4514, allocations: 426 kB / 393.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/0.4526, allocations: 418.7 kB / 393.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003391/0.456, allocations: 2.004 MB / 395.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.4562, allocations: 229.5 kB / 395.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004176/0.4567, allocations: 296.9 kB / 396.1 MB, free: 2.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006081/0.4627, allocations: 3.838 MB / 399.9 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.932e-05/0.4628, allocations: 6.438 kB / 399.9 MB, free: 308 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.4631, allocations: 120.9 kB / 400.1 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/0.4633, allocations: 149.7 kB / 400.2 MB, free: 188 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006244/0.4695, allocations: 3.244 MB / 403.5 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02187/0.4914, allocations: 12.2 MB / 415.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002723/0.4942, allocations: 1.937 MB / 417.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002/0.4962, allocations: 1.173 MB / 418.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003585/0.4966, allocations: 210.7 kB / 419 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.439e-05/0.4967, allocations: 47.81 kB / 419 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.798e-06/0.4967, allocations: 4 kB / 419 MB, free: 13.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01586/0.5126, allocations: 7.028 MB / 426 MB, free: 6.086 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.5127, allocations: 72.66 kB / 426.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004579/0.5173, allocations: 2.028 MB / 428.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.5174, allocations: 53.7 kB / 428.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.5188, allocations: 1.453 MB / 429.7 MB, free: 2.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005527/0.5193, allocations: 0.536 MB / 430.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.5195, allocations: 40 kB / 430.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002486/0.5197, allocations: 381.9 kB / 430.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.5214, allocations: 0.8667 MB / 431.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/0.5234, allocations: 1.442 MB / 432.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001993/0.5254, allocations: 1.113 MB / 434 MB, free: 13.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.982e-05/0.5255, allocations: 4 kB / 434 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005991/0.5315, allocations: 3.007 MB / 437 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.85e-05/0.5315, allocations: 12 kB / 437 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.885e-05/0.5316, allocations: 16 kB / 437.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.5326, allocations: 394.1 kB / 437.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.5343, allocations: 471.2 kB / 437.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007216/0.5415, allocations: 6.144 MB / 444.1 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.5441, allocations: 135.7 kB / 444.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003914/0.5445, allocations: 83.98 kB / 444.3 MB, free: 3.117 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 (228): * Single equations (assignments): 224 * 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%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002814/0.5473, allocations: 0.9344 MB / 445.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009883/0.5483, allocations: 217.3 kB / 445.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005613/0.554, allocations: 2.594 MB / 448 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.554, allocations: 16 kB / 448 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/0.554, allocations: 4 kB / 448 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.452e-05/0.554, allocations: 7.969 kB / 448 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/0.5677, allocations: 5.849 MB / 453.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/0.5677, allocations: 7.984 kB / 453.9 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.569, allocations: 293.7 kB / 454.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.5701, allocations: 403.8 kB / 454.6 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.5703, allocations: 43.98 kB / 454.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008314/0.5786, allocations: 7.582 MB / 462.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.5786, allocations: 4 kB / 462.2 MB, free: 500 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007464/0.5861, allocations: 3.838 MB / 466 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/0.5882, allocations: 0.4903 MB / 466.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001081/0.5893, allocations: 39.94 kB / 466.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/0.5911, allocations: 95.89 kB / 466.7 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003224/0.5914, allocations: 117 kB / 466.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.5916, allocations: 47.98 kB / 466.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003915/0.5955, allocations: 1.374 MB / 468.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5955, allocations: 0 / 468.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003692/0.5992, allocations: 0.5625 MB / 468.8 MB, free: 9.793 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 (146): * Single equations (assignments): 142 * 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%) 6,(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.007884/0.6071, allocations: 4.444 MB / 473.2 MB, free: 5.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004993/0.6121, allocations: 2.62 MB / 475.8 MB, free: 2.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.6122, allocations: 4 kB / 475.8 MB, free: 2.566 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.6146, allocations: 1.57 MB / 477.4 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004297/0.6189, allocations: 0.5331 MB / 477.9 MB, free: 428 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04754/0.6665, allocations: 18.49 MB / 496.4 MB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003477/0.67, allocations: 2.255 MB / 498.7 MB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002399/0.6724, allocations: 0.5299 MB / 499.2 MB, free: 9.797 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002147/0.6746, allocations: 1.194 MB / 0.4887 GB, free: 8.602 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6746, allocations: 0 / 0.4887 GB, free: 8.602 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3165/0.9911, allocations: 51.14 MB / 0.5386 GB, free: 143.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.9913, allocations: 236.2 kB / 0.5388 GB, free: 142.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.307/4.298, allocations: 7.656 kB / 0.5388 GB, free: 142.9 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