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.00228/0.002279, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.244/2.244, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.001099, allocations: 88.56 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.462e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 47.56 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2362/0.5929, allocations: 112.5 MB / 475 MB, free: 5.605 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/0.5933, allocations: 89.08 kB / 475.1 MB, free: 5.52 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5127/1.106, allocations: 57.64 MB / 0.5202 GB, free: 99.54 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.494e-06/1.106, allocations: 0 / 0.5202 GB, free: 99.54 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003575/1.107, allocations: 85.59 kB / 0.5203 GB, free: 99.52 MB / 395.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.01043/1.117, allocations: 2.896 MB / 0.5231 GB, free: 98.27 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/1.117, allocations: 7.844 kB / 0.5231 GB, free: 98.27 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002571/1.12, allocations: 407.5 kB / 0.5235 GB, free: 98.09 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007688/1.127, allocations: 2.161 MB / 0.5256 GB, free: 97.57 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/1.128, allocations: 99.8 kB / 0.5257 GB, free: 97.57 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/1.129, allocations: 170.1 kB / 0.5259 GB, free: 97.57 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008281/1.137, allocations: 2.685 MB / 0.5285 GB, free: 97.26 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009651/1.147, allocations: 3.192 MB / 0.5316 GB, free: 95.85 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/1.147, allocations: 3.406 kB / 0.5316 GB, free: 95.85 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/1.147, allocations: 7.234 kB / 0.5316 GB, free: 95.84 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001747/1.147, allocations: 134.3 kB / 0.5318 GB, free: 95.83 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02714/1.175, allocations: 11.14 MB / 0.5427 GB, free: 90.08 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003576/1.178, allocations: 1.941 MB / 0.5446 GB, free: 88.91 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001908/1.18, allocations: 0.9004 MB / 0.5454 GB, free: 88.58 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004468/1.181, allocations: 228.8 kB / 0.5457 GB, free: 88.39 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/1.181, allocations: 50.88 kB / 0.5457 GB, free: 88.34 MB / 395.1 MB Notification: Performance of pre-optimization done (n=134): time 3.837e-06/1.181, allocations: 0 / 0.5457 GB, free: 88.34 MB / 395.1 MB Notification: Performance of matching and sorting (n=155): time 0.01583/1.197, allocations: 5.58 MB / 0.5512 GB, free: 86.01 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/1.197, allocations: 66.5 kB / 0.5512 GB, free: 85.95 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/1.2, allocations: 1.47 MB / 0.5527 GB, free: 85.36 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004331/1.2, allocations: 29.7 kB / 0.5527 GB, free: 85.33 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009033/1.201, allocations: 1.329 MB / 0.554 GB, free: 84.25 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006923/1.202, allocations: 0.515 MB / 0.5545 GB, free: 83.84 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/1.202, allocations: 0 / 0.5545 GB, free: 83.84 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/1.202, allocations: 388.8 kB / 0.5549 GB, free: 83.49 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/1.204, allocations: 0.8289 MB / 0.5557 GB, free: 83.18 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/1.206, allocations: 1.372 MB / 0.557 GB, free: 81.88 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002421/1.209, allocations: 1.064 MB / 0.558 GB, free: 80.96 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.067e-05/1.209, allocations: 4 kB / 0.558 GB, free: 80.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.007309/1.216, allocations: 2.702 MB / 0.5607 GB, free: 78.6 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/1.216, allocations: 15.95 kB / 0.5607 GB, free: 78.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.493e-05/1.216, allocations: 16 kB / 0.5607 GB, free: 78.57 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002186/1.219, allocations: 0.542 MB / 0.5612 GB, free: 78.12 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003259/1.222, allocations: 449.2 kB / 0.5617 GB, free: 77.76 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009808/1.232, allocations: 6.011 MB / 0.5675 GB, free: 72.12 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/1.235, allocations: 99.81 kB / 0.5676 GB, free: 72.06 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005229/1.235, allocations: 83.62 kB / 0.5677 GB, free: 71.98 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 212 * 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.0004531/1.236, allocations: 161.5 kB / 0.5679 GB, free: 71.82 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00635/1.242, allocations: 2.353 MB / 0.5702 GB, free: 69.62 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000993/1.243, allocations: 195.8 kB / 0.5704 GB, free: 69.43 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006948/1.25, allocations: 2.526 MB / 0.5728 GB, free: 66.88 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/1.25, allocations: 20 kB / 0.5728 GB, free: 66.86 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.25, allocations: 4 kB / 0.5728 GB, free: 66.85 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/1.25, allocations: 7.969 kB / 0.5729 GB, free: 66.84 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/1.266, allocations: 5.307 MB / 0.578 GB, free: 61.48 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-05/1.266, allocations: 4 kB / 0.578 GB, free: 61.47 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/1.268, allocations: 283.9 kB / 0.5783 GB, free: 61.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002575/1.271, allocations: 0.5729 MB / 0.5789 GB, free: 60.61 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003877/1.271, allocations: 22.92 kB / 0.5789 GB, free: 60.59 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/1.283, allocations: 7.663 MB / 0.5864 GB, free: 52.6 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.283, allocations: 7.938 kB / 0.5864 GB, free: 52.59 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009146/1.292, allocations: 3.977 MB / 0.5903 GB, free: 48.5 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/1.294, allocations: 481.9 kB / 0.5907 GB, free: 48.01 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007427/1.295, allocations: 12 kB / 0.5907 GB, free: 48 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/1.297, allocations: 87.81 kB / 0.5908 GB, free: 47.91 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006083/1.298, allocations: 109.1 kB / 0.5909 GB, free: 47.8 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/1.298, allocations: 47.98 kB / 0.591 GB, free: 47.75 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002655/1.301, allocations: 1.096 MB / 0.592 GB, free: 46.67 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.112e-06/1.301, allocations: 0.9375 kB / 0.592 GB, free: 46.67 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003497/1.304, allocations: 0.5273 MB / 0.5926 GB, free: 46.14 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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.01003/1.314, allocations: 5.518 MB / 0.5979 GB, free: 40.56 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006162/1.321, allocations: 2.5 MB / 0.6004 GB, free: 38.02 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/1.321, allocations: 0 / 0.6004 GB, free: 38.02 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003955/1.325, allocations: 1.548 MB / 0.6019 GB, free: 36.45 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004006/1.329, allocations: 418.9 kB / 0.6023 GB, free: 36.05 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/1.345, allocations: 5.301 MB / 0.6075 GB, free: 30.68 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003249/1.349, allocations: 2.248 MB / 0.6097 GB, free: 28.4 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002878/1.352, allocations: 1.136 MB / 0.6108 GB, free: 27.27 MB / 395.1 MB Notification: Performance of SimCode: time 2.495e-06/1.352, allocations: 0 / 0.6108 GB, free: 27.27 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.071/5.423, allocations: 88.54 MB / 0.6972 GB, free: 94.04 MB / 411.1 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