Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002285/0.002285, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001133/0.001132, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003834, allocations: 12 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1019, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01702/0.119, allocations: 9.464 MB / 384.1 MB, free: 5.836 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.1295, allocations: 3.829 MB / 387.9 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.1319, allocations: 55.69 kB / 388 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003361/0.1353, allocations: 0.7151 MB / 388.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.1398, allocations: 0.8529 MB / 389.6 MB, free: 368 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002044/0.1419, allocations: 339.5 kB / 389.9 MB, free: 28 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.2627/0.4046, allocations: 2.125 MB / 392 MB, free: 9.75 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005111/0.4098, allocations: 2.058 MB / 394.1 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.413, allocations: 1.036 MB / 395.1 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004272/0.4174, allocations: 1.396 MB / 396.5 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001484/0.4189, allocations: 164.3 kB / 396.7 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002472/0.4214, allocations: 248.3 kB / 396.9 MB, free: 9.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002293/0.4238, allocations: 0.8638 MB / 397.8 MB, free: 9.406 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002126/0.4259, allocations: 0.6257 MB / 398.4 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008213/0.4342, allocations: 4.379 MB / 402.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4342, allocations: 0 / 402.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4342, allocations: 0 / 402.8 MB, free: 8.316 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002225/0.4345, allocations: 5.375 kB / 402.8 MB, free: 8.312 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01219/0.4467, allocations: 3.21 MB / 406 MB, free: 6.406 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.4467, allocations: 8.844 kB / 406 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001784/0.4485, allocations: 410 kB / 406.4 MB, free: 6.281 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002508/0.4511, allocations: 398.7 kB / 406.8 MB, free: 6.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006554/0.4577, allocations: 1.886 MB / 408.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003759/0.4581, allocations: 218.7 kB / 408.9 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.4595, allocations: 285.3 kB / 409.2 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.4725, allocations: 3.655 MB / 412.8 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001447/0.4726, allocations: 9.953 kB / 412.8 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005027/0.4732, allocations: 116.7 kB / 412.9 MB, free: 4.328 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002034/0.4734, allocations: 139.7 kB / 413.1 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01065/0.484, allocations: 3.086 MB / 416.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03574/0.5198, allocations: 11.64 MB / 427.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004564/0.5244, allocations: 1.896 MB / 429.7 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004847/0.525, allocations: 203.6 kB / 429.9 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/0.525, allocations: 47.56 kB / 430 MB, free: 4.367 MB / 298.7 MB Notification: Performance of pre-optimization done (n=125): time 3.827e-06/0.525, allocations: 0 / 430 MB, free: 4.367 MB / 298.7 MB Notification: Performance of matching and sorting (n=143): time 0.0288/0.5538, allocations: 7.256 MB / 437.2 MB, free: 13.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.182e-05/0.554, allocations: 68.72 kB / 437.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006973/0.561, allocations: 1.924 MB / 439.2 MB, free: 10.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004779/0.5615, allocations: 46.92 kB / 439.2 MB, free: 10.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001906/0.5634, allocations: 1.33 MB / 440.6 MB, free: 9.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.5646, allocations: 0.4921 MB / 441.1 MB, free: 9.082 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.5649, allocations: 36 kB / 441.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000328/0.5652, allocations: 386.7 kB / 441.5 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003523/0.5687, allocations: 0.855 MB / 442.3 MB, free: 7.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/0.5731, allocations: 1.4 MB / 443.7 MB, free: 6.172 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004315/0.5774, allocations: 1.09 MB / 444.8 MB, free: 5.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.777e-05/0.5775, allocations: 8 kB / 444.8 MB, free: 5.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.01227/0.5898, allocations: 2.822 MB / 447.7 MB, free: 2.234 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/0.5899, allocations: 15.94 kB / 447.7 MB, free: 2.219 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.402e-05/0.59, allocations: 16 kB / 447.7 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/0.5933, allocations: 0.5083 MB / 448.2 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004675/0.598, allocations: 435.2 kB / 448.6 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01639/0.6144, allocations: 6.072 MB / 454.7 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/0.6183, allocations: 135.7 kB / 454.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005245/0.6188, allocations: 79.98 kB / 454.9 MB, free: 10.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 205 * 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: 2 * 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: 2 {(5,76.0%) 17,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004164/0.623, allocations: 0.9071 MB / 455.8 MB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.6241, allocations: 205.4 kB / 456 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/0.6362, allocations: 2.547 MB / 458.6 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/0.6363, allocations: 16 kB / 458.6 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/0.6363, allocations: 4 kB / 458.6 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.625e-05/0.6364, allocations: 11.97 kB / 458.6 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02577/0.6622, allocations: 5.564 MB / 464.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.779e-05/0.6622, allocations: 0 / 464.2 MB, free: 1.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003732/0.666, allocations: 251.6 kB / 464.4 MB, free: 1.109 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004111/0.6701, allocations: 0.5258 MB / 464.9 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/0.6705, allocations: 40.11 kB / 465 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02168/0.6922, allocations: 7.561 MB / 472.5 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.6923, allocations: 4 kB / 472.5 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/0.7088, allocations: 3.882 MB / 476.4 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/0.7114, allocations: 466.4 kB / 476.9 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/0.7123, allocations: 35.98 kB / 476.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002868/0.7152, allocations: 96.14 kB / 477 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004213/0.7156, allocations: 101.1 kB / 477.1 MB, free: 3.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/0.7158, allocations: 43.98 kB / 477.1 MB, free: 3.812 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003403/0.7192, allocations: 1.307 MB / 478.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7192, allocations: 0 / 478.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003423/0.7227, allocations: 0.5587 MB / 479 MB, free: 1.926 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (123): * Single equations (assignments): 120 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 17,(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.01154/0.7342, allocations: 5.062 MB / 484.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006846/0.7411, allocations: 2.536 MB / 486.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.7412, allocations: 4.125 kB / 486.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003995/0.7452, allocations: 1.511 MB / 488.1 MB, free: 8.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/0.7494, allocations: 487.5 kB / 488.6 MB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05859/0.808, allocations: 29.25 MB / 0.5057 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/0.8113, allocations: 2.236 MB / 0.5079 GB, free: 7.363 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002824/0.8142, allocations: 1.144 MB / 0.509 GB, free: 6.219 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8142, allocations: 0 / 0.509 GB, free: 6.219 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.324/5.138, allocations: 88.24 MB / 0.5952 GB, free: 83.54 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat