Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001613/0.001613, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.322/1.322, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001144/0.001144, allocations: 47.92 kB / 282.1 MB, free: 2.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07869/0.07984, allocations: 46.63 MB / 328.7 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.014/0.09388, allocations: 13.57 MB / 342.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007975/0.1019, allocations: 4.865 MB / 347.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.1033, allocations: 71.69 kB / 347.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.1057, allocations: 1.029 MB / 348.3 MB, free: 108 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003227/0.109, allocations: 1.386 MB / 349.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.111, allocations: 0.982 MB / 350.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004317/0.1154, allocations: 4.337 MB / 355 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003514/0.1189, allocations: 3.292 MB / 358.3 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.1215, allocations: 2.005 MB / 360.3 MB, free: 3.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.1242, allocations: 2.273 MB / 362.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000619/0.1249, allocations: 0.539 MB / 363.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.1263, allocations: 0.9057 MB / 364 MB, free: 276 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.1275, allocations: 1.371 MB / 365.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.13, allocations: 2.349 MB / 367.7 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006233/0.1363, allocations: 7.33 MB / 375 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1363, allocations: 0 / 375 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1363, allocations: 3.938 kB / 375 MB, free: 5.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.765e-05/0.1364, allocations: 0 / 375 MB, free: 5.18 MB / 318.1 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.01055/0.1469, allocations: 4.977 MB / 380 MB, free: 128 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.147, allocations: 8.031 kB / 380 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1297/0.2767, allocations: 0.8756 MB / 380.9 MB, free: 49.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00643/0.2832, allocations: 2.619 MB / 383.5 MB, free: 48.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.2834, allocations: 247.9 kB / 383.8 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009732/0.2844, allocations: 341 kB / 384.1 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008858/0.2933, allocations: 4.545 MB / 388.6 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-05/0.2934, allocations: 1.312 kB / 388.6 MB, free: 46.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003097/0.2937, allocations: 145.1 kB / 388.8 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.2938, allocations: 151.1 kB / 388.9 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006387/0.3002, allocations: 3.911 MB / 392.8 MB, free: 44.45 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01748/0.3177, allocations: 14 MB / 406.8 MB, free: 34.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005431/0.3232, allocations: 6.977 MB / 413.8 MB, free: 26.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.3254, allocations: 1.692 MB / 415.5 MB, free: 25.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006011/0.3314, allocations: 4.23 MB / 419.7 MB, free: 20.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.3315, allocations: 55.81 kB / 419.8 MB, free: 20.72 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.427e-06/0.3315, allocations: 7.938 kB / 419.8 MB, free: 20.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01359/0.3451, allocations: 7.808 MB / 427.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.3451, allocations: 73.39 kB / 427.7 MB, free: 12.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.3477, allocations: 2.628 MB / 430.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.3478, allocations: 53.7 kB / 430.4 MB, free: 9.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006789/0.3485, allocations: 1.615 MB / 432 MB, free: 8.348 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002905/0.3488, allocations: 0.6227 MB / 432.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004533/0.3492, allocations: 343.2 kB / 432.9 MB, free: 7.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.062e-05/0.3493, allocations: 301.1 kB / 433.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.3505, allocations: 0.9097 MB / 434.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.3519, allocations: 1.302 MB / 435.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002739/0.3547, allocations: 2.35 MB / 437.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.3547, allocations: 4 kB / 437.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004573/0.3593, allocations: 3.068 MB / 440.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.3593, allocations: 15.94 kB / 440.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.3593, allocations: 8 kB / 440.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.3608, allocations: 0.5636 MB / 441.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001754/0.3626, allocations: 431.3 kB / 441.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009042/0.3716, allocations: 7.578 MB / 449.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.373, allocations: 88 kB / 449.5 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.3732, allocations: 79.92 kB / 449.6 MB, free: 6.129 MB / 334.1 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%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001676/0.3749, allocations: 1.161 MB / 450.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003865/0.3752, allocations: 252.9 kB / 451 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.3803, allocations: 2.883 MB / 453.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.3804, allocations: 24 kB / 453.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.3804, allocations: 11.94 kB / 453.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.3804, allocations: 7.969 kB / 453.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009773/0.3902, allocations: 6.328 MB / 460.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.3902, allocations: 4 kB / 460.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/0.3915, allocations: 275.6 kB / 460.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/0.3931, allocations: 0.6264 MB / 461.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001231/0.3932, allocations: 47.98 kB / 461.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.4049, allocations: 11.44 MB / 472.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.405, allocations: 3.938 kB / 472.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006854/0.4118, allocations: 4.154 MB / 476.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.413, allocations: 0.5409 MB / 477.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.4133, allocations: 36 kB / 477.4 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.4145, allocations: 79.94 kB / 477.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/0.4148, allocations: 145.7 kB / 477.6 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.4149, allocations: 55.92 kB / 477.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002367/0.4173, allocations: 1.842 MB / 479.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4173, allocations: 0 / 479.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002103/0.4194, allocations: 0.6927 MB / 480.2 MB, free: 6.805 MB / 366.1 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.00108/0.4205, allocations: 441.8 kB / 480.6 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004771/0.4253, allocations: 2.838 MB / 483.5 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4253, allocations: 0 / 483.5 MB, free: 3.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002897/0.4282, allocations: 1.93 MB / 485.4 MB, free: 1.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/0.4305, allocations: 0.5932 MB / 486 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.4407, allocations: 7.05 MB / 493 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.4429, allocations: 2.626 MB / 495.7 MB, free: 7.219 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001483/0.4444, allocations: 0.4966 MB / 496.2 MB, free: 6.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.4449, allocations: 167.4 kB / 496.3 MB, free: 6.555 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4449, allocations: 0 / 496.3 MB, free: 6.555 MB / 382.1 MB Notification: Performance of Templates: time 0.05902/0.5039, allocations: 34.98 MB / 0.5189 GB, free: 3.512 MB / 414.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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