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_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001011/0.00101, allocations: 95.5 kB / 16.3 MB, free: 5.996 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.001357/0.001357, allocations: 186.3 kB / 17.2 MB, free: 5.914 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.406/1.406, allocations: 223.2 MB / 241.1 MB, free: 384 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002867, allocations: 4.5 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1146, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2686/0.3832, allocations: 26.25 MB / 377.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.4026, allocations: 8.625 MB / 386.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009146/0.4118, allocations: 205.8 kB / 386.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008521/0.4204, allocations: 1.798 MB / 388.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01474/0.4351, allocations: 3.14 MB / 391.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006738/0.4419, allocations: 1.418 MB / 392.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0235/0.4654, allocations: 11.44 MB / 404.1 MB, free: 15.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03813/0.5036, allocations: 17.42 MB / 421.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01088/0.5145, allocations: 4.443 MB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01186/0.5264, allocations: 4.887 MB / 430.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004082/0.5305, allocations: 0.7305 MB / 431.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007143/0.5377, allocations: 1.011 MB / 432.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004512/0.5422, allocations: 2.258 MB / 434.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006546/0.5488, allocations: 2.391 MB / 437.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02658/0.5754, allocations: 20.99 MB / 458.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.5754, allocations: 0 / 458.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5754, allocations: 3.938 kB / 458.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006874/0.5761, allocations: 0 / 458.3 MB, free: 10.61 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: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.03644/0.6126, allocations: 12.29 MB / 470.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.6126, allocations: 12.03 kB / 470.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008462/0.6211, allocations: 1.506 MB / 472.1 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03918/0.6603, allocations: 6.713 MB / 478.8 MB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02062/0.681, allocations: 7.762 MB / 486.5 MB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001376/0.6824, allocations: 0.7868 MB / 487.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005985/0.6884, allocations: 1.047 MB / 488.4 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05118/0.7396, allocations: 17.07 MB / 0.4936 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005144/0.7401, allocations: 15.81 kB / 0.4936 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003662/0.7438, allocations: 444 kB / 0.494 GB, free: 10.68 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007119/0.7445, allocations: 0.6352 MB / 0.4947 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03963/0.7842, allocations: 16.23 MB / 0.5105 GB, free: 9.777 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5546/1.339, allocations: 55.88 MB / 0.5651 GB, free: 84.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.36, allocations: 31.05 MB / 0.5954 GB, free: 54.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01766/1.378, allocations: 10.16 MB / 0.6053 GB, free: 47.13 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/1.378, allocations: 81.84 kB / 0.6054 GB, free: 47.04 MB / 430.1 MB Notification: Performance of pre-optimization done (n=410): time 5.58e-06/1.378, allocations: 4 kB / 0.6054 GB, free: 47.04 MB / 430.1 MB Notification: Performance of matching and sorting (n=435): time 0.04365/1.421, allocations: 22.02 MB / 0.6269 GB, free: 24.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/1.421, allocations: 128.8 kB / 0.627 GB, free: 24.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006059/1.427, allocations: 4.567 MB / 0.6315 GB, free: 19.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008671/1.428, allocations: 97.7 kB / 0.6316 GB, free: 19.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002178/1.43, allocations: 4.638 MB / 0.6361 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/1.432, allocations: 1.48 MB / 0.6375 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/1.432, allocations: 120 kB / 0.6377 GB, free: 13.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002417/1.433, allocations: 0.5423 MB / 0.6382 GB, free: 13.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003896/1.436, allocations: 2.948 MB / 0.6411 GB, free: 10.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004549/1.441, allocations: 4.931 MB / 0.6459 GB, free: 4.246 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004804/1.446, allocations: 3.981 MB / 0.6498 GB, free: 256 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/1.446, allocations: 23.95 kB / 0.6498 GB, free: 232 kB / 430.1 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01742/1.463, allocations: 9.785 MB / 0.6594 GB, free: 6.391 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/1.463, allocations: 33.72 kB / 0.6594 GB, free: 6.359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/1.464, allocations: 68 kB / 0.6595 GB, free: 6.293 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004383/1.468, allocations: 1.653 MB / 0.6611 GB, free: 4.629 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005409/1.473, allocations: 1.338 MB / 0.6624 GB, free: 3.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02491/1.498, allocations: 16.89 MB / 0.6789 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006676/1.505, allocations: 331.7 kB / 0.6792 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/1.506, allocations: 284 kB / 0.6794 GB, free: 1.273 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 292 * 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 (679): * Single equations (assignments): 675 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,69.4%) 28,(1,100.0%) 1,(14,38.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009691/1.516, allocations: 3.884 MB / 0.6832 GB, free: 13.38 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001412/1.517, allocations: 0.4901 MB / 0.6837 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01395/1.531, allocations: 7.913 MB / 0.6914 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.076e-05/1.531, allocations: 44 kB / 0.6915 GB, free: 4.809 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.372e-05/1.531, allocations: 16 kB / 0.6915 GB, free: 4.793 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.366e-05/1.531, allocations: 23.91 kB / 0.6915 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3232/1.855, allocations: 17.64 MB / 0.7088 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.242e-05/1.855, allocations: 5.875 kB / 0.7088 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003644/1.858, allocations: 0.7623 MB / 0.7095 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004254/1.863, allocations: 1.549 MB / 0.711 GB, free: 147.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006399/1.863, allocations: 107 kB / 0.7111 GB, free: 147 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0202/1.884, allocations: 19.86 MB / 0.7305 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/1.884, allocations: 7.938 kB / 0.7305 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/1.901, allocations: 12.4 MB / 0.7426 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002992/1.904, allocations: 1.174 MB / 0.7438 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007609/1.905, allocations: 87.66 kB / 0.7439 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002424/1.907, allocations: 246.7 kB / 0.7441 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007719/1.908, allocations: 335.7 kB / 0.7444 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002634/1.909, allocations: 127.3 kB / 0.7445 GB, free: 126 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004459/1.913, allocations: 3.083 MB / 0.7475 GB, free: 124.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.913, allocations: 0 / 0.7475 GB, free: 124.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00693/1.92, allocations: 1.867 MB / 0.7494 GB, free: 123.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.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 (376): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01565/1.936, allocations: 14.46 MB / 0.7635 GB, free: 110.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01294/1.949, allocations: 8.236 MB / 0.7715 GB, free: 101.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/1.949, allocations: 3.906 kB / 0.7715 GB, free: 101.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008657/1.957, allocations: 4.715 MB / 0.7761 GB, free: 97.08 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007399/1.965, allocations: 1.176 MB / 0.7773 GB, free: 95.94 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1457/2.11, allocations: 100.9 MB / 0.8758 GB, free: 7.734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01447/2.125, allocations: 6.95 MB / 0.8826 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.2481/2.373, allocations: 1.865 MB / 0.8844 GB, free: 157.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007031/2.38, allocations: 3.907 MB / 0.8882 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 2.164e-06/2.38, allocations: 2.469 kB / 0.8882 GB, free: 157.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2067/2.587, allocations: 145.9 MB / 1.031 GB, free: 38.73 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/2.587, allocations: 259.2 kB / 1.031 GB, free: 38.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.35/7.937, allocations: 0 / 1.031 GB, free: 38.38 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat