Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 177.8 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006983/0.0006984, allocations: 94.38 kB / 272.1 MB, free: 8.098 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 4 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2119, allocations: 47.57 MB / 376.6 MB, free: 45.61 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01144/0.2234, allocations: 12.01 MB / 388.6 MB, free: 36.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009159/0.2326, allocations: 6.233 MB / 394.8 MB, free: 29.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0023/0.2349, allocations: 63.75 kB / 394.9 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.2373, allocations: 0.9066 MB / 395.8 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003616/0.241, allocations: 1.62 MB / 397.4 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001891/0.2429, allocations: 1.262 MB / 398.7 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004152/0.247, allocations: 4.665 MB / 403.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002532/0.2496, allocations: 2.702 MB / 406.1 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001692/0.2513, allocations: 1.427 MB / 407.5 MB, free: 16.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00172/0.253, allocations: 1.906 MB / 409.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003361/0.2534, allocations: 224 kB / 409.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.2546, allocations: 0.5736 MB / 410.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006137/0.2552, allocations: 0.9534 MB / 411.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001678/0.2569, allocations: 1.964 MB / 413.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004666/0.2616, allocations: 6.879 MB / 420 MB, free: 4.336 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2616, allocations: 0 / 420 MB, free: 4.336 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2616, allocations: 0 / 420 MB, free: 4.336 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000118/0.2617, allocations: 0 / 420 MB, free: 4.336 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.008209/0.27, allocations: 4.221 MB / 424.2 MB, free: 40 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.27, allocations: 12.03 kB / 424.2 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00427/0.2743, allocations: 0.8898 MB / 425.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.2785, allocations: 2.549 MB / 427.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.2787, allocations: 254.6 kB / 427.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005278/0.2792, allocations: 331.9 kB / 428.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007604/0.2869, allocations: 4.539 MB / 432.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.812e-05/0.2869, allocations: 0 / 432.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002876/0.2872, allocations: 136 kB / 432.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.2874, allocations: 154.7 kB / 433.1 MB, free: 7.059 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006719/0.2941, allocations: 3.907 MB / 437 MB, free: 3.145 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02212/0.3163, allocations: 14.26 MB / 451.2 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007041/0.3233, allocations: 6.986 MB / 458.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002875/0.3263, allocations: 1.704 MB / 459.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007216/0.3335, allocations: 4.257 MB / 464.2 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.3336, allocations: 51.88 kB / 464.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 4.268e-06/0.3336, allocations: 0 / 464.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=185): time 0.017/0.3506, allocations: 7.894 MB / 472.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.3507, allocations: 77.41 kB / 472.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003664/0.3544, allocations: 2.604 MB / 474.8 MB, free: 11.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.3546, allocations: 57.7 kB / 474.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.3558, allocations: 1.611 MB / 476.5 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005765/0.3564, allocations: 0.6315 MB / 477.1 MB, free: 9.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.3565, allocations: 32 kB / 477.1 MB, free: 9.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.3567, allocations: 381.8 kB / 477.5 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00165/0.3583, allocations: 0.9175 MB / 478.4 MB, free: 8.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.3601, allocations: 1.31 MB / 479.7 MB, free: 6.805 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003469/0.3636, allocations: 2.367 MB / 482.1 MB, free: 4.293 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.3636, allocations: 8 kB / 482.1 MB, free: 4.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005715/0.3693, allocations: 3.077 MB / 485.2 MB, free: 1.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.3694, allocations: 18.75 kB / 485.2 MB, free: 1.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.421e-05/0.3694, allocations: 8 kB / 485.2 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.371, allocations: 0.5479 MB / 485.8 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.3729, allocations: 443.3 kB / 486.2 MB, free: 184 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008595/0.3815, allocations: 6.954 MB / 493.1 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.3834, allocations: 96 kB / 493.2 MB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/0.3836, allocations: 75.98 kB / 493.3 MB, free: 8.789 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001971/0.3856, allocations: 1.154 MB / 494.5 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004772/0.3861, allocations: 256.9 kB / 494.7 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005153/0.3912, allocations: 2.897 MB / 497.6 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-05/0.3913, allocations: 20 kB / 497.6 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.3913, allocations: 12 kB / 497.6 MB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/0.3913, allocations: 11.91 kB / 497.7 MB, free: 4.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1584/0.5497, allocations: 6.346 MB / 0.4922 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.5498, allocations: 5.5 kB / 0.4922 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.551, allocations: 287.6 kB / 0.4925 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.5526, allocations: 0.6139 MB / 0.4931 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.5527, allocations: 50.16 kB / 0.4931 GB, free: 106.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009083/0.5618, allocations: 10.48 MB / 0.5034 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.5618, allocations: 1.594 kB / 0.5034 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006137/0.568, allocations: 4.173 MB / 0.5074 GB, free: 96.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009609/0.5689, allocations: 0.5473 MB / 0.508 GB, free: 96.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/0.5693, allocations: 37.28 kB / 0.508 GB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.5703, allocations: 100.5 kB / 0.5081 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/0.5706, allocations: 136 kB / 0.5082 GB, free: 96.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.5708, allocations: 56.67 kB / 0.5083 GB, free: 96.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002009/0.5728, allocations: 1.82 MB / 0.5101 GB, free: 95.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5728, allocations: 0 / 0.5101 GB, free: 95.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001752/0.5746, allocations: 0.6911 MB / 0.5107 GB, free: 95.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008963/0.5755, allocations: 0.4887 MB / 0.5112 GB, free: 95.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003837/0.5793, allocations: 2.847 MB / 0.514 GB, free: 93.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5793, allocations: 0 / 0.514 GB, free: 93.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.5816, allocations: 1.953 MB / 0.5159 GB, free: 91.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.584, allocations: 0.5514 MB / 0.5164 GB, free: 90.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008747/0.5927, allocations: 8.761 MB / 0.525 GB, free: 82.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.5944, allocations: 2.628 MB / 0.5276 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001605/0.596, allocations: 0.508 MB / 0.5281 GB, free: 79.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004105/0.5964, allocations: 167.4 kB / 0.5282 GB, free: 78.87 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5964, allocations: 0 / 0.5282 GB, free: 78.87 MB / 378.7 MB Notification: Performance of Templates: time 0.04831/0.6447, allocations: 35.18 MB / 0.5626 GB, free: 43.68 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_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_withLosses/AIMC_withLosses.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches