Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0007265/0.0007263, allocations: 95.44 kB / 17 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008265/0.0008267, allocations: 194.3 kB / 17.91 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.3 MB / 246 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002309/0.0002309, allocations: 4 kB / 306.9 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1176, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2632/0.3809, allocations: 21.67 MB / 380 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01909/0.4, allocations: 7.408 MB / 387.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007072/0.4072, allocations: 168.9 kB / 387.6 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006938/0.4141, allocations: 1.333 MB / 388.9 MB, free: 5.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01173/0.4259, allocations: 2.481 MB / 391.4 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006045/0.432, allocations: 1.263 MB / 392.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02612/0.4581, allocations: 13.63 MB / 406.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04736/0.5055, allocations: 19.33 MB / 425.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01082/0.5164, allocations: 4.358 MB / 430 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01116/0.5276, allocations: 4.799 MB / 434.8 MB, free: 116 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003535/0.5312, allocations: 0.6602 MB / 435.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007651/0.5388, allocations: 1.07 MB / 436.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004605/0.5435, allocations: 2.071 MB / 438.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006034/0.5495, allocations: 2.133 MB / 440.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02504/0.5746, allocations: 19.62 MB / 460.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.787e-06/0.5747, allocations: 0 / 460.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5747, allocations: 3.938 kB / 460.3 MB, free: 6.484 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000657/0.5753, allocations: 0 / 460.3 MB, free: 6.484 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03682/0.6122, allocations: 11.37 MB / 471.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.6122, allocations: 8.031 kB / 471.7 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00786/0.6201, allocations: 1.612 MB / 473.3 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03591/0.656, allocations: 6.254 MB / 479.6 MB, free: 3.113 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01902/0.6751, allocations: 7.005 MB / 486.6 MB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009809/0.6761, allocations: 0.7226 MB / 487.3 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004846/0.681, allocations: 0.9566 MB / 488.3 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05051/0.7316, allocations: 16.12 MB / 0.4925 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005826/0.7322, allocations: 11.91 kB / 0.4926 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004976/0.7372, allocations: 399.9 kB / 0.4929 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007287/0.7379, allocations: 0.5632 MB / 0.4935 GB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03878/0.7767, allocations: 15.06 MB / 0.5082 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6375/1.414, allocations: 53.29 MB / 0.5602 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0167/1.431, allocations: 20.08 MB / 0.5799 GB, free: 85.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005581/1.437, allocations: 3.677 MB / 0.5834 GB, free: 84.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000507/1.437, allocations: 272.5 kB / 0.5837 GB, free: 84.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/1.437, allocations: 77.72 kB / 0.5838 GB, free: 84.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=453): time 6.432e-06/1.437, allocations: 4 kB / 0.5838 GB, free: 84.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=458): time 0.05758/1.495, allocations: 22.9 MB / 0.6061 GB, free: 71.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/1.495, allocations: 102.3 kB / 0.6062 GB, free: 71.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007079/1.502, allocations: 4.479 MB / 0.6106 GB, free: 68.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008831/1.503, allocations: 105.6 kB / 0.6107 GB, free: 68.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002376/1.505, allocations: 4.21 MB / 0.6148 GB, free: 64.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001729/1.507, allocations: 1.549 MB / 0.6163 GB, free: 62.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003318/1.507, allocations: 128 kB / 0.6165 GB, free: 62.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002936/1.508, allocations: 0.5546 MB / 0.617 GB, free: 62.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004099/1.512, allocations: 3.081 MB / 0.62 GB, free: 58.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/1.517, allocations: 5.234 MB / 0.6251 GB, free: 52.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00579/1.522, allocations: 4.265 MB / 0.6293 GB, free: 48.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.961e-05/1.522, allocations: 20 kB / 0.6293 GB, free: 48.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.0156/1.538, allocations: 9.878 MB / 0.639 GB, free: 38.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.02e-05/1.538, allocations: 39.98 kB / 0.639 GB, free: 38.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/1.538, allocations: 68 kB / 0.6391 GB, free: 38.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003347/1.542, allocations: 1.38 MB / 0.6404 GB, free: 37.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005102/1.547, allocations: 1.384 MB / 0.6418 GB, free: 35.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/1.562, allocations: 11.65 MB / 0.6531 GB, free: 23.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005055/1.567, allocations: 351.5 kB / 0.6535 GB, free: 23.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001341/1.568, allocations: 304 kB / 0.6538 GB, free: 23.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (723): * Single equations (assignments): 717 * 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.00836/1.577, allocations: 3.892 MB / 0.6576 GB, free: 19.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001533/1.578, allocations: 462.3 kB / 0.658 GB, free: 18.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01564/1.594, allocations: 8.567 MB / 0.6664 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01012/1.604, allocations: 6.269 MB / 0.6725 GB, free: 3.848 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.479e-05/1.604, allocations: 15.95 kB / 0.6725 GB, free: 3.832 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.518e-05/1.604, allocations: 23.91 kB / 0.6725 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03818/1.642, allocations: 17.74 MB / 0.6899 GB, free: 1.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/1.642, allocations: 8 kB / 0.6899 GB, free: 1.914 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/1.646, allocations: 0.8035 MB / 0.6906 GB, free: 1.109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003201/1.649, allocations: 1.278 MB / 0.6919 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004695/1.649, allocations: 104 kB / 0.692 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/1.664, allocations: 10.57 MB / 0.7023 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/1.664, allocations: 11.94 kB / 0.7023 GB, free: 4.891 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01827/1.682, allocations: 11.26 MB / 0.7133 GB, free: 9.484 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003227/1.685, allocations: 1.104 MB / 0.7144 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/1.686, allocations: 92 kB / 0.7145 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00244/1.689, allocations: 239.8 kB / 0.7147 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006714/1.69, allocations: 331.5 kB / 0.715 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002879/1.69, allocations: 136 kB / 0.7152 GB, free: 7.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004872/1.695, allocations: 3.084 MB / 0.7182 GB, free: 4.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.695, allocations: 0 / 0.7182 GB, free: 4.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007743/1.702, allocations: 1.736 MB / 0.7199 GB, free: 2.75 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (420): * Single equations (assignments): 414 * 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,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.337/2.04, allocations: 12.27 MB / 0.7318 GB, free: 158.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01702/2.057, allocations: 8.01 MB / 0.7397 GB, free: 155 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.69e-05/2.057, allocations: 3.844 kB / 0.7397 GB, free: 155 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007591/2.064, allocations: 3.977 MB / 0.7436 GB, free: 153.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007119/2.071, allocations: 1.013 MB / 0.7445 GB, free: 153 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1192/2.191, allocations: 53.45 MB / 0.7967 GB, free: 114.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00615/2.197, allocations: 6.517 MB / 0.8031 GB, free: 107.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005767/2.203, allocations: 2.119 MB / 0.8052 GB, free: 105.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004449/2.207, allocations: 3.577 MB / 0.8087 GB, free: 101.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.462e-06/2.207, allocations: 0 / 0.8087 GB, free: 101.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4676/2.675, allocations: 135.5 MB / 0.941 GB, free: 139 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/2.675, allocations: 312 kB / 0.9413 GB, free: 138.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.278/7.953, allocations: 0 / 0.9413 GB, free: 138.6 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat