Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.0008393/0.0008394, allocations: 93.33 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.001176/0.001176, allocations: 178.7 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.442/1.442, 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.0004633/0.0004636, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1018, allocations: 47.59 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02787/0.1297, allocations: 26.51 MB / 355 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02016/0.1499, allocations: 8.023 MB / 363 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006022/0.156, allocations: 155.5 kB / 363.2 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004964/0.161, allocations: 1.251 MB / 364.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008948/0.17, allocations: 2.418 MB / 366.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004394/0.1744, allocations: 1.071 MB / 367.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01566/0.1901, allocations: 9.94 MB / 377.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2499/0.44, allocations: 9.971 MB / 387.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006265/0.4463, allocations: 3.131 MB / 390.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006806/0.4532, allocations: 3.634 MB / 394.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001805/0.455, allocations: 477.2 kB / 395 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003248/0.4582, allocations: 0.8015 MB / 395.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001298/0.4596, allocations: 1.562 MB / 397.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.4617, allocations: 1.584 MB / 399 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01067/0.4724, allocations: 13.11 MB / 412.1 MB, free: 6.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.4725, allocations: 3.984 kB / 412.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4725, allocations: 0 / 412.1 MB, free: 6.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004084/0.4729, allocations: 0 / 412.1 MB, free: 6.621 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02408/0.497, allocations: 8.258 MB / 420.4 MB, free: 2.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.497, allocations: 12.84 kB / 420.4 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004292/0.5013, allocations: 1.145 MB / 421.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02813/0.5295, allocations: 5.281 MB / 426.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/0.5414, allocations: 4.576 MB / 431.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006665/0.5422, allocations: 0.5314 MB / 431.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003847/0.546, allocations: 0.7093 MB / 432.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03197/0.578, allocations: 11.27 MB / 443.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000267/0.5783, allocations: 15.89 kB / 443.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00164/0.58, allocations: 306.6 kB / 444.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004841/0.5805, allocations: 443 kB / 444.6 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02492/0.6054, allocations: 10.74 MB / 455.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08236/0.6878, allocations: 38.1 MB / 493.5 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02515/0.713, allocations: 28.07 MB / 0.5093 GB, free: 14.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005212/0.7183, allocations: 2.646 MB / 0.5119 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01621/0.7345, allocations: 7.939 MB / 0.5197 GB, free: 4.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.31e-05/0.7347, allocations: 64.55 kB / 0.5197 GB, free: 4.246 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 5.381e-06/0.7347, allocations: 0 / 0.5197 GB, free: 4.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02741/0.7621, allocations: 11.08 MB / 0.5306 GB, free: 9.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002636/0.7648, allocations: 1.909 MB / 0.5324 GB, free: 7.109 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0093/0.7741, allocations: 3.791 MB / 0.5361 GB, free: 3.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005465/0.7747, allocations: 61.7 kB / 0.5362 GB, free: 3.273 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2424/1.017, allocations: 3.549 MB / 0.5397 GB, free: 150.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001196/1.018, allocations: 0.826 MB / 0.5405 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000409/1.019, allocations: 101.4 kB / 0.5406 GB, free: 150.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002581/1.019, allocations: 0.4946 MB / 0.541 GB, free: 150.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003454/1.023, allocations: 1.871 MB / 0.5429 GB, free: 150.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003366/1.026, allocations: 4.376 MB / 0.5471 GB, free: 147.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00376/1.03, allocations: 2.812 MB / 0.5499 GB, free: 146.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.295e-05/1.03, allocations: 28.06 kB / 0.5499 GB, free: 146.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01103/1.041, allocations: 6.945 MB / 0.5567 GB, free: 144 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.602e-05/1.041, allocations: 46.05 kB / 0.5567 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/1.041, allocations: 86.72 kB / 0.5568 GB, free: 144 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001943/1.043, allocations: 0.7534 MB / 0.5576 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/1.046, allocations: 1.115 MB / 0.5586 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006187/1.052, allocations: 5.211 MB / 0.5637 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/1.056, allocations: 309.7 kB / 0.564 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004155/1.057, allocations: 273.2 kB / 0.5643 GB, free: 140.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004557/1.061, allocations: 2.525 MB / 0.5668 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006659/1.062, allocations: 386.5 kB / 0.5671 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00606/1.068, allocations: 4.277 MB / 0.5713 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/1.068, allocations: 23 kB / 0.5713 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/1.068, allocations: 7.688 kB / 0.5713 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/1.068, allocations: 15.06 kB / 0.5713 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/1.087, allocations: 14.25 MB / 0.5853 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/1.087, allocations: 15.34 kB / 0.5853 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/1.088, allocations: 478.6 kB / 0.5857 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/1.09, allocations: 0.6949 MB / 0.5864 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/1.09, allocations: 67.33 kB / 0.5865 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006725/1.097, allocations: 6.937 MB / 0.5933 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001247/1.098, allocations: 1.87 MB / 0.5951 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007872/1.106, allocations: 6.708 MB / 0.6016 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.108, allocations: 0.7928 MB / 0.6024 GB, free: 112.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008906/1.109, allocations: 59.98 kB / 0.6025 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001784/1.111, allocations: 174.2 kB / 0.6026 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/1.111, allocations: 217.5 kB / 0.6028 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001528/1.111, allocations: 91.98 kB / 0.6029 GB, free: 111.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003418/1.115, allocations: 2.478 MB / 0.6053 GB, free: 109.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.115, allocations: 0 / 0.6053 GB, free: 109.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004961/1.12, allocations: 1.293 MB / 0.6066 GB, free: 107.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.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 (241): * Single equations (assignments): 238 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.008048/1.128, allocations: 7.395 MB / 0.6138 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007188/1.135, allocations: 5.104 MB / 0.6188 GB, free: 95.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.135, allocations: 8.188 kB / 0.6188 GB, free: 95.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003/1.138, allocations: 2.408 MB / 0.6212 GB, free: 92.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005508/1.143, allocations: 0.9402 MB / 0.6221 GB, free: 91.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07662/1.22, allocations: 38.41 MB / 0.6596 GB, free: 50.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007569/1.228, allocations: 4.493 MB / 0.664 GB, free: 45.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004983/1.233, allocations: 1.356 MB / 0.6653 GB, free: 44.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00409/1.237, allocations: 2.542 MB / 0.6678 GB, free: 41.73 MB / 446.1 MB Notification: Performance of SimCode: time 1.313e-06/1.237, allocations: 0 / 0.6678 GB, free: 41.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3686/1.605, allocations: 101.1 MB / 0.7666 GB, free: 97.71 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/1.606, allocations: 288.4 kB / 0.7668 GB, free: 97.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.869/6.475, allocations: 0 / 0.7668 GB, free: 97.36 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat