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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 96.94 kB / 16.94 MB, free: 5.977 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.0009067/0.0009067, allocations: 180.4 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.619/1.619, allocations: 205.4 MB / 224 MB, free: 13.18 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.0005293/0.0005293, allocations: 16 kB / 280.8 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1126, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01305/0.1257, allocations: 10.93 MB / 339.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01293/0.1387, allocations: 4.245 MB / 343.5 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003709/0.1425, allocations: 59.75 kB / 343.6 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004871/0.1474, allocations: 0.7695 MB / 344.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006373/0.1538, allocations: 1.164 MB / 345.5 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002872/0.1567, allocations: 0.6159 MB / 346.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006769/0.1635, allocations: 2.82 MB / 348.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004188/0.1677, allocations: 2.182 MB / 351.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.1705, allocations: 1.269 MB / 352.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003217/0.1737, allocations: 1.471 MB / 353.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.1749, allocations: 204 kB / 354.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001933/0.1768, allocations: 375.7 kB / 354.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001141/0.178, allocations: 0.7125 MB / 355.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.1793, allocations: 0.746 MB / 355.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006473/0.1858, allocations: 5.43 MB / 361.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1858, allocations: 0 / 361.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1858, allocations: 0 / 361.3 MB, free: 2.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002132/0.186, allocations: 0 / 361.3 MB, free: 2.977 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.01141/0.1974, allocations: 3.728 MB / 365 MB, free: 15.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1975, allocations: 8.031 kB / 365.1 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005362/0.2029, allocations: 0.8193 MB / 365.9 MB, free: 14.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006435/0.2094, allocations: 2.19 MB / 368.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003617/0.2098, allocations: 242.4 kB / 368.3 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/0.2111, allocations: 319.9 kB / 368.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.2212, allocations: 4.216 MB / 372.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001003/0.2214, allocations: 11.98 kB / 372.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003544/0.2218, allocations: 131.9 kB / 373 MB, free: 7.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001831/0.222, allocations: 150.4 kB / 373.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007653/0.2296, allocations: 3.57 MB / 376.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2561/0.4858, allocations: 13.89 MB / 390.6 MB, free: 42.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00645/0.4923, allocations: 6.548 MB / 397.1 MB, free: 36.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006219/0.4985, allocations: 3.213 MB / 400.3 MB, free: 34.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.4986, allocations: 51.8 kB / 400.4 MB, free: 34.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 4.569e-06/0.4986, allocations: 0 / 400.4 MB, free: 34.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.01205/0.5107, allocations: 5.994 MB / 406.4 MB, free: 30.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.5108, allocations: 76.41 kB / 406.5 MB, free: 30.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/0.5133, allocations: 1.722 MB / 408.2 MB, free: 29.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.5135, allocations: 51.05 kB / 408.2 MB, free: 29.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007574/0.5143, allocations: 1.423 MB / 409.6 MB, free: 28.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.5146, allocations: 0.4957 MB / 410.1 MB, free: 28.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.5147, allocations: 35.56 kB / 410.2 MB, free: 28.1 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.5148, allocations: 369.4 kB / 410.5 MB, free: 27.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.516, allocations: 0.6999 MB / 411.2 MB, free: 27.38 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.5174, allocations: 1.195 MB / 412.4 MB, free: 26.36 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.5186, allocations: 0.9137 MB / 413.3 MB, free: 25.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.5187, allocations: 7.438 kB / 413.4 MB, free: 25.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004209/0.5229, allocations: 2.572 MB / 415.9 MB, free: 24.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.5229, allocations: 7.75 kB / 415.9 MB, free: 24.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.348e-05/0.523, allocations: 16.34 kB / 416 MB, free: 24.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009757/0.524, allocations: 366.3 kB / 416.3 MB, free: 24.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/0.5254, allocations: 387.4 kB / 416.7 MB, free: 23.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006099/0.5315, allocations: 7.772 MB / 424.5 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.5333, allocations: 85.81 kB / 424.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/0.5335, allocations: 75.98 kB / 424.6 MB, free: 15.21 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.002124/0.5356, allocations: 1.001 MB / 425.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004376/0.536, allocations: 193.8 kB / 425.8 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00358/0.5396, allocations: 2.349 MB / 428.2 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.5397, allocations: 15.94 kB / 428.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.5397, allocations: 8 kB / 428.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5397, allocations: 7.969 kB / 428.2 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007824/0.5475, allocations: 5.145 MB / 433.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.5476, allocations: 4 kB / 433.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008357/0.5484, allocations: 193.5 kB / 433.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.5497, allocations: 0.5322 MB / 434.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.504e-05/0.5498, allocations: 39.98 kB / 434.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/0.5617, allocations: 12.2 MB / 446.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.5618, allocations: 7.984 kB / 446.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005711/0.5675, allocations: 3.393 MB / 449.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.5688, allocations: 434.5 kB / 450.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002823/0.5691, allocations: 32 kB / 450.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008898/0.57, allocations: 71.94 kB / 450.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/0.5703, allocations: 105.2 kB / 450.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.124e-05/0.5704, allocations: 36 kB / 450.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002063/0.5725, allocations: 1.184 MB / 451.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5725, allocations: 0 / 451.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002759/0.5752, allocations: 0.582 MB / 452.1 MB, free: 2.59 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.0003918/0.5757, allocations: 166.7 kB / 452.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004132/0.5798, allocations: 2.39 MB / 454.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.5798, allocations: 0.875 kB / 454.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002786/0.5826, allocations: 1.778 MB / 456.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.5853, allocations: 0.498 MB / 457 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.5996, allocations: 7.106 MB / 464.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002804/0.6024, allocations: 2.366 MB / 466.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.002001/0.6045, allocations: 409 kB / 466.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.6048, allocations: 123.4 kB / 467 MB, free: 3.527 MB / 350.1 MB Notification: Performance of SimCode: time 1.834e-06/0.6048, allocations: 3.938 kB / 467 MB, free: 3.523 MB / 350.1 MB Notification: Performance of Templates: time 0.05607/0.6609, allocations: 27.22 MB / 494.2 MB, free: 8.281 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile Environment - environmentSimulation: (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 & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches