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.001476/0.001476, allocations: 105.5 kB / 18.4 MB, free: 4.68 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.001453/0.001454, allocations: 183 kB / 19.33 MB, free: 3.762 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.497/1.497, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001348/0.001349, allocations: 60.38 kB / 329.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1289, allocations: 46.62 MB / 375.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.2462/0.3751, allocations: 13.57 MB / 389.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009931/0.385, allocations: 4.451 MB / 393.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003289/0.3884, allocations: 71.5 kB / 393.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003988/0.3924, allocations: 0.9883 MB / 394.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005579/0.3981, allocations: 1.31 MB / 396.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.4009, allocations: 0.9003 MB / 397.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007154/0.4081, allocations: 4.108 MB / 401.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006117/0.4142, allocations: 3.186 MB / 404.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004575/0.4188, allocations: 1.903 MB / 406.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005376/0.4242, allocations: 2.09 MB / 408.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002026/0.4263, allocations: 0.5091 MB / 408.9 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003998/0.4303, allocations: 0.7062 MB / 409.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002657/0.433, allocations: 1.12 MB / 410.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006291/0.4393, allocations: 2.13 MB / 412.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0124/0.4517, allocations: 6.695 MB / 419.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.4518, allocations: 0 / 419.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.4518, allocations: 3.938 kB / 419.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002689/0.4521, allocations: 1.375 kB / 419.6 MB, free: 3.633 MB / 334.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.01988/0.472, allocations: 4.406 MB / 424 MB, free: 15.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.472, allocations: 12.03 kB / 424 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006716/0.4788, allocations: 0.8123 MB / 424.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005726/0.4845, allocations: 2.287 MB / 427.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000383/0.485, allocations: 242.8 kB / 427.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/0.4866, allocations: 328.2 kB / 427.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.5025, allocations: 4.266 MB / 431.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001528/0.5027, allocations: 4 kB / 431.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001102/0.5038, allocations: 128 kB / 432.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000214/0.504, allocations: 154.4 kB / 432.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.5153, allocations: 3.597 MB / 435.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0259/0.5413, allocations: 13.7 MB / 449.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006846/0.5481, allocations: 6.567 MB / 456.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002441/0.5506, allocations: 1.386 MB / 457.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006375/0.557, allocations: 3.632 MB / 461.1 MB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.5571, allocations: 51.86 kB / 461.1 MB, free: 8.758 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 5.31e-06/0.5571, allocations: 0 / 461.1 MB, free: 8.758 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01172/0.5688, allocations: 5.871 MB / 467 MB, free: 2.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.5689, allocations: 64.72 kB / 467.1 MB, free: 2.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00262/0.5715, allocations: 1.792 MB / 468.9 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.5717, allocations: 53.7 kB / 468.9 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009871/0.5727, allocations: 1.434 MB / 470.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000403/0.5732, allocations: 481.1 kB / 470.8 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004702/0.5736, allocations: 315.2 kB / 471.1 MB, free: 14.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.5738, allocations: 309.1 kB / 471.4 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.5748, allocations: 0.6754 MB / 472.1 MB, free: 13.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.5763, allocations: 1.201 MB / 473.3 MB, free: 12.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002549/0.5788, allocations: 2.003 MB / 475.3 MB, free: 9.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.5788, allocations: 4 kB / 475.3 MB, free: 9.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004046/0.5829, allocations: 2.539 MB / 477.8 MB, free: 7.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.5829, allocations: 16.06 kB / 477.9 MB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.243e-05/0.583, allocations: 16 kB / 477.9 MB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009234/0.5839, allocations: 360 kB / 478.2 MB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.5852, allocations: 379.4 kB / 478.6 MB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008534/0.5938, allocations: 8.411 MB / 487 MB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/0.5962, allocations: 71.97 kB / 487.1 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002651/0.5964, allocations: 79.98 kB / 487.2 MB, free: 13.4 MB / 414.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 (idealOpener.control,idealCloser.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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003133/0.5996, allocations: 0.9971 MB / 488.2 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007681/0.6004, allocations: 197.7 kB / 488.4 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006194/0.6066, allocations: 2.297 MB / 490.6 MB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/0.6066, allocations: 12 kB / 490.7 MB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.6067, allocations: 8 kB / 490.7 MB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.412e-05/0.6067, allocations: 7.969 kB / 490.7 MB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.6206, allocations: 5.071 MB / 495.7 MB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.6206, allocations: 0 / 495.7 MB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.6222, allocations: 179.9 kB / 495.9 MB, free: 4.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002817/0.625, allocations: 0.5281 MB / 496.5 MB, free: 3.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002507/0.6253, allocations: 35.98 kB / 496.5 MB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02267/0.648, allocations: 13.23 MB / 0.4978 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.648, allocations: 4.031 kB / 0.4978 GB, free: 5.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009527/0.6576, allocations: 3.214 MB / 0.5009 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001709/0.6593, allocations: 430.6 kB / 0.5013 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005724/0.6599, allocations: 35.94 kB / 0.5014 GB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/0.6616, allocations: 67.95 kB / 0.5014 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004317/0.6621, allocations: 101.2 kB / 0.5015 GB, free: 1.82 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.6622, allocations: 43.98 kB / 0.5016 GB, free: 1.777 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.6653, allocations: 1.215 MB / 0.5027 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6654, allocations: 4 kB / 0.5027 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004086/0.6695, allocations: 0.5782 MB / 0.5033 GB, free: 15.98 MB / 446.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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005427/0.67, allocations: 162.9 kB / 0.5035 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006382/0.6764, allocations: 2.365 MB / 0.5058 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.6765, allocations: 5.812 kB / 0.5058 GB, free: 13.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004705/0.6812, allocations: 1.749 MB / 0.5075 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004921/0.6862, allocations: 0.5537 MB / 0.508 GB, free: 10.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.7041, allocations: 5.806 MB / 0.5137 GB, free: 5.129 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003436/0.7076, allocations: 2.253 MB / 0.5159 GB, free: 2.852 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009162/0.7085, allocations: 139.4 kB / 0.516 GB, free: 2.715 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.7085, allocations: 0 / 0.516 GB, free: 2.715 MB / 446.1 MB Notification: Performance of Templates: time 0.3298/1.038, allocations: 128.7 MB / 0.6417 GB, free: 77.77 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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