Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",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.001179/0.001179, allocations: 92.55 kB / 16.3 MB, free: 6.457 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.001394/0.001394, allocations: 183 kB / 17.2 MB, free: 6.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003508, allocations: 6.719 kB / 300.8 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1148, allocations: 50.42 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics): time 0.02144/0.1363, allocations: 19.83 MB / 371.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.1516, allocations: 6.94 MB / 378 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003861/0.1554, allocations: 159.5 kB / 378.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005226/0.1607, allocations: 1.489 MB / 379.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008791/0.1695, allocations: 2.486 MB / 382.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004374/0.1739, allocations: 1.184 MB / 383.3 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01546/0.1894, allocations: 9.885 MB / 393.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0337/0.2231, allocations: 17.77 MB / 411 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006969/0.2301, allocations: 3.859 MB / 414.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006609/0.2367, allocations: 4.16 MB / 419 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002415/0.2392, allocations: 0.6406 MB / 419.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004184/0.2434, allocations: 0.9371 MB / 420.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002505/0.2459, allocations: 1.834 MB / 422.4 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004877/0.2508, allocations: 2.048 MB / 424.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2416/0.4924, allocations: 18.94 MB / 443.4 MB, free: 19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4925, allocations: 0.75 kB / 443.4 MB, free: 19 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.027e-06/0.4925, allocations: 1.031 kB / 443.4 MB, free: 19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006997/0.4932, allocations: 2.344 kB / 443.4 MB, free: 19 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.0337/0.5269, allocations: 10.71 MB / 454.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.527, allocations: 9.344 kB / 454.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006583/0.5336, allocations: 1.55 MB / 455.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03382/0.5674, allocations: 6.102 MB / 461.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01671/0.5842, allocations: 6.668 MB / 468.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007547/0.585, allocations: 0.7036 MB / 469.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004868/0.5899, allocations: 0.9204 MB / 470.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04496/0.6348, allocations: 15.61 MB / 485.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003676/0.6352, allocations: 15.89 kB / 485.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003635/0.6389, allocations: 388.3 kB / 486.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005429/0.6394, allocations: 0.5554 MB / 486.6 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03727/0.6767, allocations: 14.71 MB / 0.4896 GB, free: 5.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1159/0.7927, allocations: 51.7 MB / 0.5401 GB, free: 1.012 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02851/0.8213, allocations: 26.45 MB / 0.5659 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000794/0.8221, allocations: 173.3 kB / 0.5661 GB, free: 3.352 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.799e-05/0.8222, allocations: 77.69 kB / 0.5662 GB, free: 3.266 MB / 446.1 MB Notification: Performance of pre-optimization done (n=404): time 6.172e-06/0.8222, allocations: 0 / 0.5662 GB, free: 3.266 MB / 446.1 MB Notification: Performance of matching and sorting (n=410): time 0.04914/0.8714, allocations: 17.62 MB / 0.5834 GB, free: 1.547 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.549e-05/0.8715, allocations: 90.59 kB / 0.5834 GB, free: 1.445 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2974/1.169, allocations: 3.64 MB / 0.587 GB, free: 151.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001112/1.17, allocations: 91.08 kB / 0.5871 GB, free: 151.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003476/1.174, allocations: 3.98 MB / 0.591 GB, free: 149.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002041/1.176, allocations: 1.397 MB / 0.5923 GB, free: 148.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004565/1.176, allocations: 118.9 kB / 0.5924 GB, free: 148.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003603/1.176, allocations: 0.5453 MB / 0.593 GB, free: 148.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004306/1.181, allocations: 2.828 MB / 0.5957 GB, free: 147.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005779/1.187, allocations: 4.971 MB / 0.6006 GB, free: 143.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/1.192, allocations: 3.982 MB / 0.6045 GB, free: 141.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-05/1.192, allocations: 19.28 kB / 0.6045 GB, free: 141.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01427/1.207, allocations: 9.141 MB / 0.6134 GB, free: 138 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.876e-05/1.207, allocations: 39.03 kB / 0.6135 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.207, allocations: 70.12 kB / 0.6135 GB, free: 138 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00298/1.21, allocations: 1.198 MB / 0.6147 GB, free: 137.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004631/1.214, allocations: 1.33 MB / 0.616 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/1.227, allocations: 9.371 MB / 0.6252 GB, free: 129.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005364/1.232, allocations: 338.2 kB / 0.6255 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.233, allocations: 283.5 kB / 0.6257 GB, free: 129.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * 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 (697): * Single equations (assignments): 692 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00702/1.24, allocations: 3.702 MB / 0.6294 GB, free: 126.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.241, allocations: 399.1 kB / 0.6297 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01059/1.252, allocations: 6.799 MB / 0.6364 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008237/1.26, allocations: 5.661 MB / 0.6419 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/1.26, allocations: 12 kB / 0.6419 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.314e-05/1.26, allocations: 19.92 kB / 0.6419 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02859/1.289, allocations: 16.19 MB / 0.6578 GB, free: 98.15 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.276e-05/1.289, allocations: 4 kB / 0.6578 GB, free: 98.15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003156/1.292, allocations: 0.7294 MB / 0.6585 GB, free: 97.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002801/1.295, allocations: 1.071 MB / 0.6595 GB, free: 96.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005514/1.295, allocations: 91.97 kB / 0.6596 GB, free: 96.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/1.306, allocations: 8.316 MB / 0.6677 GB, free: 87.83 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.306, allocations: 4 kB / 0.6677 GB, free: 87.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01391/1.32, allocations: 10.45 MB / 0.6779 GB, free: 77.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002914/1.323, allocations: 0.9722 MB / 0.6789 GB, free: 76.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007454/1.324, allocations: 79.98 kB / 0.679 GB, free: 76.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/1.326, allocations: 207.9 kB / 0.6792 GB, free: 75.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005715/1.326, allocations: 291.3 kB / 0.6794 GB, free: 75.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000229/1.327, allocations: 124 kB / 0.6796 GB, free: 75.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00364/1.33, allocations: 2.452 MB / 0.6819 GB, free: 73.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.33, allocations: 0 / 0.6819 GB, free: 73.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006534/1.337, allocations: 1.611 MB / 0.6835 GB, free: 71.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * 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 (392): * Single equations (assignments): 387 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01403/1.351, allocations: 12.25 MB / 0.6955 GB, free: 59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01068/1.362, allocations: 7.203 MB / 0.7025 GB, free: 51.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/1.362, allocations: 0 / 0.7025 GB, free: 51.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005376/1.367, allocations: 3.432 MB / 0.7059 GB, free: 48.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004575/1.372, allocations: 0.8649 MB / 0.7067 GB, free: 47.49 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3367/1.708, allocations: 94.29 MB / 0.7988 GB, free: 150.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007973/1.716, allocations: 6.341 MB / 0.805 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005892/1.722, allocations: 1.913 MB / 0.8069 GB, free: 148.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005701/1.728, allocations: 3.304 MB / 0.8101 GB, free: 145.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.332e-06/1.728, allocations: 3.609 kB / 0.8101 GB, free: 145.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1663/1.894, allocations: 123.1 MB / 0.9303 GB, free: 24.68 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/1.895, allocations: 276.6 kB / 0.9306 GB, free: 24.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.463/6.357, allocations: 0 / 0.9306 GB, free: 24.32 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.mat does not exist to compare? outputFormat=mat