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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 95.06 kB / 16.95 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 178 kB / 17.84 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005771/0.0005773, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1302, allocations: 47.58 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01188/0.1421, allocations: 10.24 MB / 338.7 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009625/0.1518, allocations: 3.718 MB / 342.4 MB, free: 5.957 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.1541, allocations: 63.69 kB / 342.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00223/0.1563, allocations: 0.6794 MB / 343.2 MB, free: 5.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003976/0.1603, allocations: 0.8002 MB / 344 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.1618, allocations: 339.5 kB / 344.3 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005107/0.1669, allocations: 3.286 MB / 347.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003374/0.1703, allocations: 2.053 MB / 349.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.173, allocations: 1.124 MB / 350.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.1756, allocations: 1.564 MB / 352.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003385/0.1759, allocations: 172 kB / 352.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007946/0.1768, allocations: 255.9 kB / 352.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.1779, allocations: 0.8956 MB / 353.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.1789, allocations: 0.6289 MB / 354.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005344/0.1843, allocations: 4.429 MB / 358.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.1843, allocations: 0 / 358.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.948e-06/0.1843, allocations: 0 / 358.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001465/0.1845, allocations: 0 / 358.7 MB, free: 5.602 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007349/0.1918, allocations: 3.225 MB / 361.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.1919, allocations: 12.03 kB / 361.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007212/0.1926, allocations: 409 kB / 362.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.1937, allocations: 399.5 kB / 362.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.1968, allocations: 1.861 MB / 364.6 MB, free: 15.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.197, allocations: 229.6 kB / 364.8 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004039/0.1975, allocations: 287.9 kB / 365.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006437/0.2039, allocations: 3.669 MB / 368.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-05/0.204, allocations: 15.83 kB / 368.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/0.2043, allocations: 115.9 kB / 368.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001944/0.2045, allocations: 145.4 kB / 369 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005398/0.2099, allocations: 3.082 MB / 372.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2676/0.4775, allocations: 11.68 MB / 383.8 MB, free: 44.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/0.4801, allocations: 1.9 MB / 385.7 MB, free: 43.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/0.4821, allocations: 1.089 MB / 386.8 MB, free: 43.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000306/0.4824, allocations: 213 kB / 387 MB, free: 43.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.4825, allocations: 44.09 kB / 387 MB, free: 43.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.787e-06/0.4825, allocations: 1 kB / 387 MB, free: 43.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01377/0.4963, allocations: 6.54 MB / 393.6 MB, free: 40.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.4963, allocations: 68.41 kB / 393.6 MB, free: 40.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003194/0.4995, allocations: 1.977 MB / 395.6 MB, free: 39.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.4997, allocations: 51.2 kB / 395.7 MB, free: 39.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009395/0.5006, allocations: 1.408 MB / 397.1 MB, free: 38.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003926/0.501, allocations: 495.3 kB / 397.6 MB, free: 38.46 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.999e-05/0.5011, allocations: 34.31 kB / 397.6 MB, free: 38.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.5013, allocations: 380.7 kB / 398 MB, free: 38.1 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.5024, allocations: 0.8133 MB / 398.8 MB, free: 37.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.5036, allocations: 1.377 MB / 400.2 MB, free: 36.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.5049, allocations: 1.045 MB / 401.2 MB, free: 36.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.5049, allocations: 5.438 kB / 401.2 MB, free: 36.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003966/0.5089, allocations: 2.842 MB / 404 MB, free: 34.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.509, allocations: 11.78 kB / 404.1 MB, free: 34.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/0.509, allocations: 18 kB / 404.1 MB, free: 34.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007774/0.5098, allocations: 385.8 kB / 404.5 MB, free: 34.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.5111, allocations: 433.6 kB / 404.9 MB, free: 34.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004411/0.5155, allocations: 6.152 MB / 411 MB, free: 29.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5172, allocations: 130.3 kB / 411.2 MB, free: 29.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/0.5173, allocations: 73.97 kB / 411.2 MB, free: 29.17 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * 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: 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.00154/0.5189, allocations: 0.9226 MB / 412.1 MB, free: 28.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003857/0.5193, allocations: 201.5 kB / 412.3 MB, free: 28.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003458/0.5227, allocations: 2.421 MB / 414.8 MB, free: 25.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.5228, allocations: 12 kB / 414.8 MB, free: 25.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5228, allocations: 4 kB / 414.8 MB, free: 25.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.5228, allocations: 7.969 kB / 414.8 MB, free: 25.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007687/0.5305, allocations: 5.533 MB / 420.3 MB, free: 20.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.5306, allocations: 4 kB / 420.3 MB, free: 20.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009904/0.5316, allocations: 255.6 kB / 420.6 MB, free: 19.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008721/0.5324, allocations: 414.6 kB / 421 MB, free: 19.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.551e-05/0.5326, allocations: 35.98 kB / 421 MB, free: 19.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005372/0.5379, allocations: 7.571 MB / 428.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.538, allocations: 4 kB / 428.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004851/0.5428, allocations: 3.604 MB / 432.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.5441, allocations: 474.4 kB / 432.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006008/0.5447, allocations: 32 kB / 432.7 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.5461, allocations: 95.89 kB / 432.8 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002056/0.5463, allocations: 105.1 kB / 432.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.5464, allocations: 43.98 kB / 432.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.549, allocations: 1.35 MB / 434.3 MB, free: 5.414 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.549, allocations: 0 / 434.3 MB, free: 5.414 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002765/0.5518, allocations: 0.5377 MB / 434.8 MB, free: 4.879 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (129): * Single equations (assignments): 125 * 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%) 1,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005203/0.557, allocations: 4.221 MB / 439 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004172/0.5612, allocations: 2.478 MB / 441.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.5613, allocations: 0 / 441.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/0.5637, allocations: 1.5 MB / 443 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/0.5675, allocations: 0.5167 MB / 443.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04158/0.6091, allocations: 17.72 MB / 461.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/0.613, allocations: 2.201 MB / 463.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002248/0.6153, allocations: 0.4978 MB / 464 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/0.6174, allocations: 1.14 MB / 465.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of SimCode: time 2.194e-06/0.6174, allocations: 0 / 465.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09503/0.7125, allocations: 49.02 MB / 0.5021 GB, free: 4.016 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003027/0.7129, allocations: 241.9 kB / 0.5023 GB, free: 3.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.578/4.291, allocations: 4 kB / 0.5023 GB, free: 3.684 MB / 398.1 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) Environment - environmentSimulation: 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