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.0009723/0.0009724, allocations: 91.2 kB / 16.95 MB, free: 6.453 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.001058/0.001059, allocations: 181.4 kB / 17.84 MB, free: 6.004 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.553/1.553, 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.0006491/0.0006492, allocations: 12 kB / 280.9 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1071, allocations: 47.58 MB / 328.5 MB, free: 3.961 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0232/0.1303, allocations: 21.73 MB / 350.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.1467, allocations: 7.116 MB / 357.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006105/0.1529, allocations: 143.6 kB / 357.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00672/0.1596, allocations: 1.332 MB / 358.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.173, allocations: 2.516 MB / 361.3 MB, free: 3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00626/0.1793, allocations: 1.212 MB / 362.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02367/0.203, allocations: 13.65 MB / 376.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2602/0.4633, allocations: 19.34 MB / 395.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008677/0.472, allocations: 4.421 MB / 399.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009234/0.4813, allocations: 4.884 MB / 404.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002914/0.4842, allocations: 0.6639 MB / 405.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004766/0.489, allocations: 1.046 MB / 406.5 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002896/0.4919, allocations: 2.117 MB / 408.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004064/0.496, allocations: 2.152 MB / 410.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01775/0.5138, allocations: 19.59 MB / 430.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.5138, allocations: 0 / 430.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5138, allocations: 0 / 430.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006949/0.5145, allocations: 0 / 430.4 MB, free: 14.52 MB / 334.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.03571/0.5502, allocations: 11.47 MB / 441.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.5503, allocations: 16.03 kB / 441.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006909/0.5572, allocations: 1.647 MB / 443.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03971/0.5969, allocations: 7.232 MB / 450.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01507/0.6121, allocations: 6.416 MB / 457.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008986/0.613, allocations: 0.7405 MB / 457.9 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004382/0.6174, allocations: 0.971 MB / 458.9 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04667/0.6641, allocations: 16.57 MB / 475.4 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003305/0.6644, allocations: 22.14 kB / 475.5 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002898/0.6673, allocations: 406.4 kB / 475.9 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006418/0.668, allocations: 0.5871 MB / 476.5 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03745/0.7055, allocations: 15.74 MB / 492.2 MB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5406/1.246, allocations: 54.06 MB / 0.5335 GB, free: 106.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/1.268, allocations: 22.72 MB / 0.5556 GB, free: 90.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005801/1.273, allocations: 3.828 MB / 0.5594 GB, free: 90.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01565/1.289, allocations: 11.79 MB / 0.5709 GB, free: 88.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.146e-05/1.289, allocations: 72.55 kB / 0.571 GB, free: 88.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=363): time 5.48e-06/1.289, allocations: 0.625 kB / 0.571 GB, free: 88.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=368): time 0.0455/1.335, allocations: 19.96 MB / 0.5904 GB, free: 82.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/1.335, allocations: 100.1 kB / 0.5905 GB, free: 82.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00643/1.341, allocations: 4.728 MB / 0.5952 GB, free: 79.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007288/1.342, allocations: 84.8 kB / 0.5952 GB, free: 79.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/1.344, allocations: 4.496 MB / 0.5996 GB, free: 75.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001566/1.346, allocations: 1.262 MB / 0.6009 GB, free: 74.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004025/1.346, allocations: 120.3 kB / 0.601 GB, free: 74.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003271/1.347, allocations: 0.5462 MB / 0.6015 GB, free: 74.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004326/1.351, allocations: 2.917 MB / 0.6044 GB, free: 72.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006196/1.357, allocations: 5.288 MB / 0.6095 GB, free: 67.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006298/1.364, allocations: 4.098 MB / 0.6135 GB, free: 63.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.738e-05/1.364, allocations: 24 kB / 0.6136 GB, free: 63.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01601/1.38, allocations: 9.63 MB / 0.623 GB, free: 54.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/1.38, allocations: 40 kB / 0.623 GB, free: 54.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/1.38, allocations: 76 kB / 0.6231 GB, free: 53.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/1.383, allocations: 1.418 MB / 0.6245 GB, free: 52.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/1.387, allocations: 1.334 MB / 0.6258 GB, free: 51.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/1.401, allocations: 11.64 MB / 0.6371 GB, free: 39.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004735/1.405, allocations: 379.5 kB / 0.6375 GB, free: 38.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008899/1.406, allocations: 300 kB / 0.6378 GB, free: 38.63 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008737/1.415, allocations: 3.931 MB / 0.6416 GB, free: 34.69 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.416, allocations: 442.5 kB / 0.642 GB, free: 34.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/1.428, allocations: 6.816 MB / 0.6487 GB, free: 27.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008246/1.436, allocations: 5.613 MB / 0.6542 GB, free: 21.74 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/1.436, allocations: 12 kB / 0.6542 GB, free: 21.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.57e-05/1.436, allocations: 23.88 kB / 0.6542 GB, free: 21.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02587/1.462, allocations: 15.52 MB / 0.6694 GB, free: 6.117 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/1.462, allocations: 8.125 kB / 0.6694 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002597/1.465, allocations: 0.6669 MB / 0.67 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00287/1.467, allocations: 1.264 MB / 0.6713 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000376/1.468, allocations: 87.97 kB / 0.6713 GB, free: 4.086 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/1.481, allocations: 10.57 MB / 0.6817 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/1.481, allocations: 19.88 kB / 0.6817 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01706/1.498, allocations: 10.08 MB / 0.6915 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002941/1.501, allocations: 1.042 MB / 0.6925 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.502, allocations: 75.98 kB / 0.6926 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002362/1.505, allocations: 219.8 kB / 0.6928 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006026/1.505, allocations: 275.1 kB / 0.6931 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/1.506, allocations: 116 kB / 0.6932 GB, free: 13.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005401/1.511, allocations: 3.201 MB / 0.6963 GB, free: 10.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.71e-07/1.511, allocations: 0 / 0.6963 GB, free: 10.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008804/1.52, allocations: 1.693 MB / 0.698 GB, free: 8.398 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.9%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2523/1.772, allocations: 11.06 MB / 0.7088 GB, free: 141.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01524/1.787, allocations: 7.563 MB / 0.7162 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.787, allocations: 5.25 kB / 0.7162 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006897/1.794, allocations: 3.61 MB / 0.7197 GB, free: 139.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00518/1.8, allocations: 0.9756 MB / 0.7206 GB, free: 139.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1127/1.912, allocations: 52.7 MB / 0.7721 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008188/1.921, allocations: 6.563 MB / 0.7785 GB, free: 101.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00654/1.927, allocations: 2.101 MB / 0.7806 GB, free: 99.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00573/1.933, allocations: 3.547 MB / 0.784 GB, free: 96.41 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/1.933, allocations: 4 kB / 0.784 GB, free: 96.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3798/2.313, allocations: 131.5 MB / 0.9125 GB, free: 127.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/2.313, allocations: 310.5 kB / 0.9128 GB, free: 126.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.314/7.627, allocations: 0 / 0.9128 GB, free: 126.9 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