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.001096/0.001096, allocations: 100.8 kB / 16.94 MB, free: 5.984 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.0009916/0.0009916, allocations: 179 kB / 17.82 MB, free: 5.652 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.282/1.282, 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.0004551/0.0004552, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.08178, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01046/0.09228, allocations: 10.94 MB / 339.4 MB, free: 9.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006688/0.09899, allocations: 4.225 MB / 343.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009823/0.1, allocations: 67.69 kB / 343.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.1017, allocations: 0.7656 MB / 344.4 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.1043, allocations: 1.164 MB / 345.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.1057, allocations: 0.6159 MB / 346.2 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003408/0.1091, allocations: 2.816 MB / 349 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002412/0.1115, allocations: 2.19 MB / 351.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001821/0.1134, allocations: 1.257 MB / 352.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.1153, allocations: 1.474 MB / 353.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003892/0.1157, allocations: 204 kB / 354.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.1168, allocations: 375.8 kB / 354.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006994/0.1175, allocations: 0.7202 MB / 355.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.1185, allocations: 0.7421 MB / 356 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006137/0.1247, allocations: 5.426 MB / 361.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1247, allocations: 3.938 kB / 361.4 MB, free: 2.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1247, allocations: 4 kB / 361.4 MB, free: 2.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002202/0.125, allocations: 0 / 361.4 MB, free: 2.875 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.009393/0.1344, allocations: 3.724 MB / 365.1 MB, free: 15.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1344, allocations: 8.031 kB / 365.1 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007805/0.1352, allocations: 459.6 kB / 365.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004005/0.1392, allocations: 0.8192 MB / 366.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00398/0.1432, allocations: 2.186 MB / 368.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.1434, allocations: 238.5 kB / 368.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004809/0.1439, allocations: 327.8 kB / 369.1 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006905/0.1508, allocations: 4.216 MB / 373.4 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.444e-05/0.1509, allocations: 7.844 kB / 373.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002916/0.1512, allocations: 136 kB / 373.5 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.1514, allocations: 150.4 kB / 373.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006127/0.1575, allocations: 3.574 MB / 377.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1717/0.3292, allocations: 13.9 MB / 391.1 MB, free: 42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005164/0.3344, allocations: 6.544 MB / 397.7 MB, free: 36.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0049/0.3393, allocations: 3.205 MB / 400.9 MB, free: 33.96 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3394, allocations: 57.53 kB / 400.9 MB, free: 33.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 2.785e-06/0.3394, allocations: 1.438 kB / 400.9 MB, free: 33.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.009708/0.3491, allocations: 5.996 MB / 406.9 MB, free: 30.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/0.3492, allocations: 68.47 kB / 407 MB, free: 29.97 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/0.351, allocations: 1.727 MB / 408.7 MB, free: 29.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.729e-05/0.3511, allocations: 53.52 kB / 408.8 MB, free: 28.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006103/0.3517, allocations: 1.42 MB / 410.2 MB, free: 27.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002508/0.352, allocations: 0.4896 MB / 410.7 MB, free: 27.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.186e-05/0.352, allocations: 31.97 kB / 410.7 MB, free: 27.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.3521, allocations: 377.7 kB / 411.1 MB, free: 26.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008714/0.353, allocations: 0.6954 MB / 411.8 MB, free: 26.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.354, allocations: 1.197 MB / 413 MB, free: 25.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3551, allocations: 0.9189 MB / 413.9 MB, free: 25.03 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3551, allocations: 7.312 kB / 413.9 MB, free: 25.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003103/0.3582, allocations: 2.562 MB / 416.5 MB, free: 23.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3582, allocations: 16.06 kB / 416.5 MB, free: 23.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.3583, allocations: 16 kB / 416.5 MB, free: 23.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007832/0.3591, allocations: 367.4 kB / 416.8 MB, free: 22.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3603, allocations: 383.4 kB / 417.2 MB, free: 22.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.3659, allocations: 7.782 MB / 425 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3671, allocations: 80.05 kB / 425.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-05/0.3672, allocations: 76 kB / 425.2 MB, free: 13.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (196): * Single equations (assignments): 191 * 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,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001364/0.3685, allocations: 1.009 MB / 426.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/0.3687, allocations: 197.6 kB / 426.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003046/0.3718, allocations: 2.344 MB / 428.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.3718, allocations: 19.94 kB / 428.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.3718, allocations: 8 kB / 428.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.3719, allocations: 3.984 kB / 428.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006139/0.378, allocations: 5.154 MB / 433.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.378, allocations: 4.031 kB / 433.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/0.3788, allocations: 187.8 kB / 434.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.3799, allocations: 0.5189 MB / 434.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.948e-05/0.38, allocations: 39.98 kB / 434.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009873/0.3899, allocations: 12.21 MB / 446.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.3899, allocations: 11.88 kB / 446.9 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004703/0.3946, allocations: 3.393 MB / 450.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008112/0.3954, allocations: 422.6 kB / 450.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.3957, allocations: 39.98 kB / 450.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.3964, allocations: 71.95 kB / 450.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/0.3967, allocations: 105.2 kB / 450.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.781e-05/0.3968, allocations: 43.98 kB / 450.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001569/0.3983, allocations: 1.176 MB / 452.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3984, allocations: 0 / 452.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001954/0.4003, allocations: 0.5846 MB / 452.7 MB, free: 1.359 MB / 334.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 (92): * Single equations (assignments): 86 * 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%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(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.005163/0.4055, allocations: 4.393 MB / 457.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003245/0.4087, allocations: 2.394 MB / 459.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4088, allocations: 0 / 459.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.4111, allocations: 1.778 MB / 461.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.4129, allocations: 498.1 kB / 461.7 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03313/0.4461, allocations: 26.96 MB / 488.7 MB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/0.4479, allocations: 2.366 MB / 491 MB, free: 9.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001315/0.4492, allocations: 405 kB / 491.4 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.4505, allocations: 1.128 MB / 492.6 MB, free: 8.016 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4505, allocations: 0 / 492.6 MB, free: 8.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07237/0.5229, allocations: 49.04 MB / 0.5289 GB, free: 6.898 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.5231, allocations: 223.7 kB / 0.5291 GB, free: 6.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.697/3.22, allocations: 0 / 0.5291 GB, free: 6.66 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