Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001197/0.001197, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0009036/0.0009037, allocations: 92.91 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002391/0.0002391, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2351, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.3607, allocations: 113.3 MB / 489.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.361, allocations: 87.95 kB / 489.3 MB, free: 15.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2887/0.6497, allocations: 58.34 MB / 0.5348 GB, free: 83.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6497, allocations: 0 / 0.5348 GB, free: 83.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001929/0.6499, allocations: 95.8 kB / 0.5349 GB, free: 83.2 MB / 378.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.006091/0.656, allocations: 3.256 MB / 0.5381 GB, free: 79.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.6561, allocations: 12.03 kB / 0.5381 GB, free: 79.86 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005705/0.6566, allocations: 417 kB / 0.5385 GB, free: 79.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008312/0.6575, allocations: 404.3 kB / 0.5389 GB, free: 79.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003897/0.6614, allocations: 2.191 MB / 0.541 GB, free: 76.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.763e-05/0.6615, allocations: 209.7 kB / 0.5412 GB, free: 76.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003172/0.6618, allocations: 287.8 kB / 0.5415 GB, free: 76.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004379/0.6662, allocations: 3.671 MB / 0.5451 GB, free: 72.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.6663, allocations: 7.906 kB / 0.5451 GB, free: 72.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002267/0.6665, allocations: 116 kB / 0.5452 GB, free: 72.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.835e-05/0.6666, allocations: 133.5 kB / 0.5453 GB, free: 72.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003779/0.6704, allocations: 2.95 MB / 0.5482 GB, free: 69.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.6839, allocations: 11.67 MB / 0.5596 GB, free: 57.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/0.6859, allocations: 1.973 MB / 0.5615 GB, free: 55.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003161/0.6863, allocations: 223.5 kB / 0.5617 GB, free: 54.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/0.6863, allocations: 51.81 kB / 0.5618 GB, free: 54.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.647e-06/0.6863, allocations: 4 kB / 0.5618 GB, free: 54.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=149): time 0.01279/0.6991, allocations: 7.639 MB / 0.5693 GB, free: 47.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.6992, allocations: 68.72 kB / 0.5693 GB, free: 47.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/0.7016, allocations: 1.735 MB / 0.571 GB, free: 45.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001433/0.7018, allocations: 53.7 kB / 0.5711 GB, free: 45.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006857/0.7025, allocations: 1.405 MB / 0.5724 GB, free: 43.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/0.7028, allocations: 0.5084 MB / 0.5729 GB, free: 43.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.7029, allocations: 36 kB / 0.573 GB, free: 43.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.703, allocations: 377.9 kB / 0.5733 GB, free: 42.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.7041, allocations: 0.8901 MB / 0.5742 GB, free: 41.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.7054, allocations: 1.419 MB / 0.5756 GB, free: 40.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.7068, allocations: 1.123 MB / 0.5767 GB, free: 39.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.7068, allocations: 4 kB / 0.5767 GB, free: 39.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004457/0.7112, allocations: 3.05 MB / 0.5797 GB, free: 36.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.7113, allocations: 12 kB / 0.5797 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/0.7113, allocations: 16.44 kB / 0.5797 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.7125, allocations: 0.5488 MB / 0.5802 GB, free: 35.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.714, allocations: 447.3 kB / 0.5806 GB, free: 35.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005718/0.7197, allocations: 6.475 MB / 0.587 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.7216, allocations: 135.8 kB / 0.5871 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.7218, allocations: 83.98 kB / 0.5872 GB, free: 28.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (209): * Single equations (assignments): 206 * 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%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001715/0.7235, allocations: 0.9079 MB / 0.5881 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.7239, allocations: 209.4 kB / 0.5883 GB, free: 27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00376/0.7277, allocations: 2.688 MB / 0.5909 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.7277, allocations: 16 kB / 0.5909 GB, free: 24.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.7277, allocations: 11.89 kB / 0.5909 GB, free: 24.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.7277, allocations: 7.969 kB / 0.5909 GB, free: 24.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00798/0.7357, allocations: 5.764 MB / 0.5966 GB, free: 18.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.7357, allocations: 0 / 0.5966 GB, free: 18.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000992/0.7367, allocations: 259.6 kB / 0.5968 GB, free: 18.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001301/0.738, allocations: 0.5803 MB / 0.5974 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.7382, allocations: 31.98 kB / 0.5974 GB, free: 17.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006804/0.745, allocations: 8.212 MB / 0.6054 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.745, allocations: 0 / 0.6054 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005195/0.7502, allocations: 4.063 MB / 0.6094 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/0.7516, allocations: 0.4904 MB / 0.6099 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005324/0.7521, allocations: 32 kB / 0.6099 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001312/0.7534, allocations: 107.9 kB / 0.61 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.7537, allocations: 97.17 kB / 0.6101 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.36e-05/0.7538, allocations: 39.98 kB / 0.6101 GB, free: 3.902 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002168/0.7559, allocations: 1.334 MB / 0.6114 GB, free: 2.547 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7559, allocations: 3.938 kB / 0.6114 GB, free: 2.543 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002453/0.7584, allocations: 0.6172 MB / 0.612 GB, free: 1.926 MB / 378.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%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006394/0.7648, allocations: 5.491 MB / 0.6174 GB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004057/0.7689, allocations: 2.645 MB / 0.62 GB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7689, allocations: 0 / 0.62 GB, free: 9.656 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/0.7712, allocations: 1.588 MB / 0.6215 GB, free: 8.031 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.7734, allocations: 495.4 kB / 0.622 GB, free: 7.547 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2296/1.003, allocations: 29.23 MB / 0.6505 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/1.005, allocations: 2.274 MB / 0.6528 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002001/1.007, allocations: 0.4985 MB / 0.6533 GB, free: 105.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/1.008, allocations: 1.13 MB / 0.6544 GB, free: 105.6 MB / 410.7 MB Notification: Performance of SimCode: time 9.187e-06/1.008, allocations: 0 / 0.6544 GB, free: 105.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07888/1.087, allocations: 55.59 MB / 0.7086 GB, free: 74.49 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/1.088, allocations: 249 kB / 0.7089 GB, free: 74.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.447/4.535, allocations: 0 / 0.7089 GB, free: 74.24 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat