Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",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.0009422/0.0009423, allocations: 96.86 kB / 16.94 MB, free: 6.441 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.0009865/0.0009865, allocations: 185.7 kB / 17.83 MB, free: 6.008 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.381/1.381, allocations: 205.4 MB / 224 MB, free: 13.17 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.000441/0.000441, allocations: 23.38 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09218, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01942/0.1116, allocations: 20.03 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.1262, allocations: 7.294 MB / 355.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00429/0.1306, allocations: 147.5 kB / 355.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005362/0.136, allocations: 1.493 MB / 357.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00921/0.1452, allocations: 2.567 MB / 360 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004398/0.1496, allocations: 1.232 MB / 361.2 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01714/0.1668, allocations: 10.19 MB / 371.4 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2492/0.4161, allocations: 19.14 MB / 390.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008609/0.4247, allocations: 4.029 MB / 394.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008303/0.4331, allocations: 4.373 MB / 398.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002128/0.4352, allocations: 0.6608 MB / 399.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/0.4385, allocations: 0.981 MB / 400.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.4405, allocations: 2.084 MB / 402.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00286/0.4433, allocations: 2.152 MB / 404.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.4592, allocations: 19.54 MB / 424.4 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.4592, allocations: 0 / 424.4 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4592, allocations: 0 / 424.4 MB, free: 224 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005811/0.4598, allocations: 3.938 kB / 424.4 MB, free: 220 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.03151/0.4913, allocations: 11.4 MB / 435.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.4914, allocations: 12.03 kB / 435.8 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006339/0.4977, allocations: 1.633 MB / 437.4 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04051/0.5383, allocations: 7.165 MB / 444.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.5529, allocations: 6.422 MB / 451 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007224/0.5536, allocations: 0.7292 MB / 451.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004385/0.558, allocations: 0.9643 MB / 452.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04428/0.6023, allocations: 16.48 MB / 469.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002663/0.6026, allocations: 15.91 kB / 469.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002322/0.6049, allocations: 402.3 kB / 469.6 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006164/0.6056, allocations: 0.5909 MB / 470.2 MB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03485/0.6404, allocations: 15.74 MB / 485.9 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/0.744, allocations: 54.01 MB / 0.5273 GB, free: 2.469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3623/1.106, allocations: 22.67 MB / 0.5494 GB, free: 104.6 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02163/1.128, allocations: 11.8 MB / 0.5609 GB, free: 100.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/1.128, allocations: 78.41 kB / 0.561 GB, free: 100.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=365): time 6.632e-06/1.128, allocations: 0 / 0.561 GB, free: 100.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=370): time 0.04029/1.168, allocations: 18.58 MB / 0.5792 GB, free: 93.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/1.169, allocations: 88.72 kB / 0.5792 GB, free: 93.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007386/1.176, allocations: 4.685 MB / 0.5838 GB, free: 91.29 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006728/1.177, allocations: 88.77 kB / 0.5839 GB, free: 91.21 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002618/1.179, allocations: 4.477 MB / 0.5883 GB, free: 87.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001598/1.181, allocations: 1.278 MB / 0.5895 GB, free: 86.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/1.181, allocations: 119.6 kB / 0.5896 GB, free: 86.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002838/1.181, allocations: 0.5455 MB / 0.5902 GB, free: 86.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004024/1.185, allocations: 2.916 MB / 0.593 GB, free: 85.23 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005005/1.191, allocations: 5.249 MB / 0.5981 GB, free: 80.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005161/1.196, allocations: 4.115 MB / 0.6022 GB, free: 76.98 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.89e-05/1.196, allocations: 24 kB / 0.6022 GB, free: 76.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01462/1.21, allocations: 9.607 MB / 0.6116 GB, free: 67.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-05/1.211, allocations: 48.2 kB / 0.6116 GB, free: 67.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/1.211, allocations: 77.97 kB / 0.6117 GB, free: 67.19 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003218/1.214, allocations: 1.382 MB / 0.613 GB, free: 65.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004767/1.219, allocations: 1.341 MB / 0.6143 GB, free: 64.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/1.232, allocations: 11.95 MB / 0.626 GB, free: 52.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006199/1.238, allocations: 371.5 kB / 0.6264 GB, free: 51.89 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.24, allocations: 304 kB / 0.6267 GB, free: 51.59 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * 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 (692): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006958/1.247, allocations: 3.915 MB / 0.6305 GB, free: 47.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.248, allocations: 450.4 kB / 0.6309 GB, free: 47.22 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01064/1.258, allocations: 6.827 MB / 0.6376 GB, free: 40.35 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007702/1.266, allocations: 5.627 MB / 0.6431 GB, free: 34.69 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.987e-05/1.266, allocations: 14.08 kB / 0.6431 GB, free: 34.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.128e-05/1.266, allocations: 19.92 kB / 0.6431 GB, free: 34.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02442/1.291, allocations: 15.48 MB / 0.6582 GB, free: 19.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/1.291, allocations: 4 kB / 0.6582 GB, free: 19.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/1.293, allocations: 0.6714 MB / 0.6589 GB, free: 18.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002902/1.296, allocations: 1.263 MB / 0.6601 GB, free: 17.17 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003317/1.297, allocations: 87.97 kB / 0.6602 GB, free: 17.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/1.308, allocations: 10.86 MB / 0.6708 GB, free: 5.977 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.308, allocations: 7.938 kB / 0.6708 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/1.323, allocations: 10.52 MB / 0.6811 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002702/1.326, allocations: 1.034 MB / 0.6821 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000659/1.326, allocations: 71.94 kB / 0.6822 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/1.329, allocations: 223.8 kB / 0.6824 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006282/1.329, allocations: 275.2 kB / 0.6826 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002606/1.329, allocations: 113.6 kB / 0.6827 GB, free: 9.426 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004984/1.334, allocations: 3.17 MB / 0.6858 GB, free: 6.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.335, allocations: 0 / 0.6858 GB, free: 6.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006721/1.341, allocations: 1.688 MB / 0.6875 GB, free: 4.566 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (336): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01769/1.359, allocations: 12.41 MB / 0.6996 GB, free: 7.992 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01303/1.372, allocations: 7.573 MB / 0.707 GB, free: 408 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.372, allocations: 4 kB / 0.707 GB, free: 404 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1918/1.564, allocations: 3.609 MB / 0.7105 GB, free: 153.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005442/1.569, allocations: 0.9158 MB / 0.7114 GB, free: 153.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.119/1.688, allocations: 105.2 MB / 0.8142 GB, free: 70.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006539/1.695, allocations: 6.727 MB / 0.8207 GB, free: 63.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005719/1.701, allocations: 2.102 MB / 0.8228 GB, free: 61.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004419/1.705, allocations: 3.545 MB / 0.8262 GB, free: 58.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.362e-06/1.705, allocations: 0 / 0.8262 GB, free: 58.25 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3618/2.067, allocations: 130.7 MB / 0.9539 GB, free: 95.57 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/2.067, allocations: 299.2 kB / 0.9542 GB, free: 95.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.663/6.73, allocations: 0 / 0.9542 GB, free: 95.21 MB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat