Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|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.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|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.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 109.4 kB / 18.4 MB, free: 4.66 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.001447/0.001447, allocations: 189.2 kB / 19.33 MB, free: 3.738 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.407/1.407, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001405/0.001406, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09178, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.1942/0.286, allocations: 12.81 MB / 388.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008827/0.2949, allocations: 4.289 MB / 392.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003129/0.2981, allocations: 68.53 kB / 393 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003596/0.3018, allocations: 0.9701 MB / 394 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005266/0.3071, allocations: 1.282 MB / 395.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002641/0.3097, allocations: 0.8627 MB / 396.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006549/0.3163, allocations: 4.038 MB / 400.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006095/0.3224, allocations: 3.187 MB / 403.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004593/0.3271, allocations: 1.894 MB / 405.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006658/0.3338, allocations: 2.111 MB / 407.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002687/0.3365, allocations: 0.5134 MB / 407.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004514/0.341, allocations: 0.7124 MB / 408.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003323/0.3444, allocations: 1.141 MB / 409.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008011/0.3524, allocations: 2.129 MB / 411.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.3685, allocations: 6.734 MB / 418.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.3686, allocations: 4.594 kB / 418.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3686, allocations: 0 / 418.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002726/0.3689, allocations: 0 / 418.6 MB, free: 4.539 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.02016/0.3891, allocations: 4.393 MB / 423 MB, free: 424 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3891, allocations: 16.03 kB / 423 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005447/0.3946, allocations: 0.8124 MB / 423.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005965/0.4006, allocations: 2.319 MB / 426.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003532/0.401, allocations: 230.6 kB / 426.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001515/0.4025, allocations: 320.2 kB / 426.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/0.4153, allocations: 4.262 MB / 430.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001766/0.4156, allocations: 7.906 kB / 430.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001206/0.4168, allocations: 127.9 kB / 431.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002005/0.417, allocations: 146.2 kB / 431.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0095/0.4265, allocations: 3.651 MB / 434.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02879/0.4554, allocations: 13.33 MB / 448.2 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007456/0.4629, allocations: 6.874 MB / 455.1 MB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/0.4656, allocations: 1.406 MB / 456.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007991/0.4736, allocations: 3.624 MB / 460.1 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/0.4737, allocations: 51.44 kB / 460.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.126e-06/0.4737, allocations: 0 / 460.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.0156/0.4893, allocations: 6.634 MB / 466.8 MB, free: 2.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.4895, allocations: 72.66 kB / 466.8 MB, free: 2.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004156/0.4936, allocations: 1.859 MB / 468.7 MB, free: 1.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003192/0.494, allocations: 49.7 kB / 468.7 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.4954, allocations: 1.423 MB / 470.2 MB, free: 15.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006659/0.4961, allocations: 496.8 kB / 470.7 MB, free: 15.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000747/0.4968, allocations: 307.3 kB / 471 MB, free: 14.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.497, allocations: 309.1 kB / 471.3 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/0.4984, allocations: 0.7574 MB / 472 MB, free: 13.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.5002, allocations: 1.22 MB / 473.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003173/0.5034, allocations: 2.111 MB / 475.3 MB, free: 9.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.799e-05/0.5034, allocations: 8 kB / 475.4 MB, free: 9.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005239/0.5087, allocations: 2.655 MB / 478 MB, free: 7.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.5087, allocations: 15.94 kB / 478 MB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/0.5088, allocations: 12 kB / 478 MB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/0.5103, allocations: 0.5013 MB / 478.5 MB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.5119, allocations: 387.4 kB / 478.9 MB, free: 6.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009332/0.5213, allocations: 6.924 MB / 485.8 MB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.5233, allocations: 75.95 kB / 485.9 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003231/0.5236, allocations: 75.92 kB / 486 MB, free: 14.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * 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,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002361/0.526, allocations: 1.048 MB / 487 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006734/0.5267, allocations: 193.6 kB / 487.2 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005017/0.5317, allocations: 2.5 MB / 489.7 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.5318, allocations: 16 kB / 489.7 MB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.59e-05/0.5318, allocations: 7.938 kB / 489.7 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.071e-05/0.5318, allocations: 7.969 kB / 489.8 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.5427, allocations: 5.533 MB / 495.3 MB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.5428, allocations: 0 / 495.3 MB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.5439, allocations: 219.7 kB / 495.5 MB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/0.5453, allocations: 0.5039 MB / 496 MB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.5455, allocations: 35.98 kB / 496 MB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.558, allocations: 11.4 MB / 0.4956 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.5581, allocations: 0 / 0.4956 GB, free: 8.594 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006817/0.5649, allocations: 3.562 MB / 0.499 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.5663, allocations: 454.6 kB / 0.4995 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006977/0.567, allocations: 28 kB / 0.4995 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.5685, allocations: 67.95 kB / 0.4996 GB, free: 4.383 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004004/0.5689, allocations: 121 kB / 0.4997 GB, free: 4.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.569, allocations: 39.98 kB / 0.4997 GB, free: 4.227 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003084/0.5721, allocations: 1.286 MB / 0.501 GB, free: 2.949 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5721, allocations: 384 / 0.501 GB, free: 2.949 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003411/0.5755, allocations: 0.59 MB / 0.5015 GB, free: 2.359 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004851/0.576, allocations: 167.2 kB / 0.5017 GB, free: 2.188 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005129/0.5812, allocations: 2.406 MB / 0.504 GB, free: 15.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.5812, allocations: 0 / 0.504 GB, free: 15.76 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003035/0.5843, allocations: 1.72 MB / 0.5057 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003555/0.5878, allocations: 0.5151 MB / 0.5062 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.6014, allocations: 5.897 MB / 0.512 GB, free: 7.508 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003203/0.6047, allocations: 2.316 MB / 0.5143 GB, free: 5.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007016/0.6054, allocations: 139.4 kB / 0.5144 GB, free: 5.023 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.6054, allocations: 0 / 0.5144 GB, free: 5.023 MB / 446.1 MB Notification: Performance of Templates: time 0.2946/0.9001, allocations: 98.07 MB / 0.6102 GB, free: 111.9 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches