Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.0009086/0.0009083, allocations: 95.45 kB / 16.95 MB, free: 6.469 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.0008871/0.000887, allocations: 182.8 kB / 17.84 MB, free: 6.016 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.74/1.74, 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.0005164/0.0005165, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1106, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01256/0.1232, allocations: 11.95 MB / 340.4 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008682/0.1319, allocations: 4.122 MB / 344.5 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.1345, allocations: 67.69 kB / 344.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.1373, allocations: 0.7457 MB / 345.3 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004283/0.1416, allocations: 1.072 MB / 346.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002301/0.1439, allocations: 0.6158 MB / 347 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00642/0.1503, allocations: 4.078 MB / 351.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004612/0.155, allocations: 2.182 MB / 353.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002828/0.1578, allocations: 1.3 MB / 354.6 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003501/0.1613, allocations: 1.611 MB / 356.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00123/0.1626, allocations: 208 kB / 356.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.1647, allocations: 399.7 kB / 356.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001417/0.1662, allocations: 0.7473 MB / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001819/0.168, allocations: 0.7421 MB / 358.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006827/0.1748, allocations: 5.465 MB / 363.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1749, allocations: 4 kB / 363.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1749, allocations: 0 / 363.7 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002328/0.1751, allocations: 0 / 363.7 MB, free: 0.5195 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01061/0.1858, allocations: 3.747 MB / 367.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.1858, allocations: 8.031 kB / 367.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001602/0.1874, allocations: 455.6 kB / 367.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005283/0.1927, allocations: 0.8232 MB / 368.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005107/0.1979, allocations: 2.162 MB / 370.9 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/0.1982, allocations: 242.4 kB / 371.2 MB, free: 8.953 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.1992, allocations: 327.9 kB / 371.5 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.2098, allocations: 4.235 MB / 375.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.21, allocations: 11.98 kB / 375.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006833/0.2107, allocations: 135.9 kB / 375.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001965/0.2109, allocations: 150.4 kB / 376 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007933/0.2189, allocations: 3.574 MB / 379.6 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2117/0.4306, allocations: 13.93 MB / 393.5 MB, free: 40.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005921/0.4366, allocations: 6.547 MB / 400.1 MB, free: 34.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002301/0.4389, allocations: 1.4 MB / 401.5 MB, free: 33.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006687/0.4456, allocations: 3.653 MB / 405.1 MB, free: 30.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.4457, allocations: 51.81 kB / 405.2 MB, free: 30.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=134): time 4.538e-06/0.4457, allocations: 0 / 405.2 MB, free: 30.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=137): time 0.0119/0.4576, allocations: 5.938 MB / 411.1 MB, free: 27.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.4577, allocations: 67.44 kB / 411.2 MB, free: 26.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/0.4603, allocations: 1.771 MB / 412.9 MB, free: 26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.4606, allocations: 56.86 kB / 413 MB, free: 25.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008472/0.4614, allocations: 1.424 MB / 414.4 MB, free: 24.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.4618, allocations: 485.9 kB / 414.9 MB, free: 24.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.4619, allocations: 31.97 kB / 414.9 MB, free: 24.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.462, allocations: 377 kB / 415.3 MB, free: 23.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.463, allocations: 0.6815 MB / 416 MB, free: 23.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.4642, allocations: 1.188 MB / 417.2 MB, free: 22.4 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.4653, allocations: 0.9043 MB / 418.1 MB, free: 21.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.4653, allocations: 4 kB / 418.1 MB, free: 21.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003966/0.4693, allocations: 2.527 MB / 420.6 MB, free: 18.92 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.4694, allocations: 12 kB / 420.6 MB, free: 18.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/0.4694, allocations: 16 kB / 420.6 MB, free: 18.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.4704, allocations: 369.6 kB / 421 MB, free: 18.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.4717, allocations: 383.4 kB / 421.4 MB, free: 18.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00572/0.4775, allocations: 7.667 MB / 429 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4793, allocations: 75.88 kB / 429.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001687/0.4795, allocations: 75.98 kB / 429.2 MB, free: 9.805 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001757/0.4813, allocations: 1.01 MB / 430.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.4817, allocations: 189.7 kB / 430.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/0.4851, allocations: 2.291 MB / 432.7 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4851, allocations: 16 kB / 432.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.4852, allocations: 11.98 kB / 432.7 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4852, allocations: 3.984 kB / 432.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007451/0.4926, allocations: 5.064 MB / 437.8 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4927, allocations: 8.234 kB / 437.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007149/0.4934, allocations: 175.8 kB / 437.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/0.4947, allocations: 0.5393 MB / 438.5 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.95e-05/0.4948, allocations: 43.92 kB / 438.5 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/0.5065, allocations: 12.06 MB / 450.6 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.5065, allocations: 4.125 kB / 450.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.5119, allocations: 3.215 MB / 453.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.5131, allocations: 422.9 kB / 454.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.5134, allocations: 36 kB / 454.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008134/0.5142, allocations: 71.94 kB / 454.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002892/0.5145, allocations: 117 kB / 454.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.668e-05/0.5146, allocations: 36 kB / 454.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001986/0.5166, allocations: 1.211 MB / 455.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5166, allocations: 0 / 455.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002871/0.5194, allocations: 0.5768 MB / 456.3 MB, free: 13.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005374/0.5248, allocations: 3.831 MB / 460.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.5287, allocations: 2.348 MB / 462.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.5288, allocations: 0 / 462.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.5314, allocations: 1.752 MB / 464.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002894/0.5343, allocations: 0.5099 MB / 464.7 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03476/0.5691, allocations: 16.68 MB / 481.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/0.5714, allocations: 2.311 MB / 483.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001675/0.5731, allocations: 405 kB / 484.1 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.5747, allocations: 1.129 MB / 485.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5747, allocations: 0 / 485.2 MB, free: 15.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09076/0.6655, allocations: 49.23 MB / 0.5219 GB, free: 14.07 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/0.6657, allocations: 237.2 kB / 0.5221 GB, free: 13.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.216/3.882, allocations: 0 / 0.5221 GB, free: 13.82 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat does not exist to compare? outputFormat=mat