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.001628/0.001628, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001783/0.001783, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.469/1.469, allocations: 205.1 MB / 224.5 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.001165/0.001165, allocations: 51.92 kB / 328.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09182, allocations: 46.62 MB / 375.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2013/0.2931, allocations: 12.83 MB / 388 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008951/0.3021, allocations: 4.287 MB / 392.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002745/0.3049, allocations: 65.22 kB / 392.3 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.3078, allocations: 0.9693 MB / 393.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004442/0.3122, allocations: 1.288 MB / 394.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.3147, allocations: 0.8564 MB / 395.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005801/0.3205, allocations: 4.034 MB / 399.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003829/0.3244, allocations: 3.184 MB / 402.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003467/0.3278, allocations: 1.899 MB / 404.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003528/0.3314, allocations: 2.113 MB / 406.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008617/0.3323, allocations: 0.5104 MB / 407.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001671/0.3339, allocations: 0.7149 MB / 407.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009939/0.335, allocations: 1.141 MB / 409 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002662/0.3376, allocations: 2.119 MB / 411.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007106/0.3447, allocations: 6.742 MB / 417.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3448, allocations: 0 / 417.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3448, allocations: 1.375 kB / 417.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001551/0.345, allocations: 0 / 417.9 MB, free: 4.508 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.01414/0.3591, allocations: 4.396 MB / 422.3 MB, free: 376 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3592, allocations: 15.97 kB / 422.3 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004423/0.3636, allocations: 0.8085 MB / 423.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/0.3679, allocations: 2.323 MB / 425.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.3681, allocations: 234.6 kB / 425.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005719/0.3687, allocations: 316.3 kB / 426 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008383/0.3771, allocations: 4.262 MB / 430.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.551e-05/0.3772, allocations: 11.89 kB / 430.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003093/0.3775, allocations: 124 kB / 430.4 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001285/0.3776, allocations: 142.2 kB / 430.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006512/0.3841, allocations: 3.655 MB / 434.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03352/0.4177, allocations: 13.33 MB / 447.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.4297, allocations: 6.866 MB / 454.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004731/0.4345, allocations: 1.41 MB / 455.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01095/0.4455, allocations: 3.635 MB / 459.4 MB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.6e-05/0.4456, allocations: 43.56 kB / 459.5 MB, free: 9.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 4.699e-06/0.4456, allocations: 0 / 459.5 MB, free: 9.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.02512/0.4707, allocations: 6.641 MB / 466.1 MB, free: 2.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.4708, allocations: 68.72 kB / 466.2 MB, free: 2.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005221/0.4761, allocations: 1.855 MB / 468 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.4763, allocations: 49.7 kB / 468.1 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.4781, allocations: 1.423 MB / 469.5 MB, free: 15.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006918/0.4788, allocations: 0.489 MB / 470 MB, free: 14.97 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008883/0.4797, allocations: 307.3 kB / 470.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4799, allocations: 305.1 kB / 470.6 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002359/0.4822, allocations: 0.7613 MB / 471.3 MB, free: 13.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002745/0.485, allocations: 1.224 MB / 472.6 MB, free: 12.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005342/0.4904, allocations: 2.111 MB / 474.7 MB, free: 9.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/0.4904, allocations: 4 kB / 474.7 MB, free: 9.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.008483/0.4989, allocations: 2.652 MB / 477.3 MB, free: 7.211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.317e-05/0.499, allocations: 23.86 kB / 477.4 MB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.541e-05/0.499, allocations: 12 kB / 477.4 MB, free: 7.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002515/0.5016, allocations: 0.4935 MB / 477.9 MB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002945/0.5045, allocations: 391.4 kB / 478.2 MB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.52, allocations: 6.924 MB / 485.2 MB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/0.5229, allocations: 75.95 kB / 485.2 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.5232, allocations: 71.94 kB / 485.3 MB, free: 14.94 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.003565/0.5268, allocations: 1.048 MB / 486.4 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008194/0.5276, allocations: 197.6 kB / 486.6 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007563/0.5352, allocations: 2.492 MB / 489 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.481e-05/0.5353, allocations: 16 kB / 489.1 MB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.798e-05/0.5353, allocations: 7.938 kB / 489.1 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-05/0.5354, allocations: 7.969 kB / 489.1 MB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/0.5499, allocations: 5.533 MB / 494.6 MB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.5499, allocations: 0 / 494.6 MB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001874/0.5518, allocations: 223.7 kB / 494.8 MB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.5542, allocations: 0.496 MB / 495.3 MB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/0.5544, allocations: 35.98 kB / 495.4 MB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01748/0.5719, allocations: 11.41 MB / 0.4949 GB, free: 8.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/0.5719, allocations: 8 kB / 0.4949 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007885/0.5798, allocations: 3.558 MB / 0.4984 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.581, allocations: 454.6 kB / 0.4988 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005173/0.5815, allocations: 28 kB / 0.4988 GB, free: 4.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.5828, allocations: 71.94 kB / 0.4989 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003061/0.5831, allocations: 117 kB / 0.499 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5832, allocations: 40.36 kB / 0.4991 GB, free: 4.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002328/0.5856, allocations: 1.282 MB / 0.5003 GB, free: 2.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5856, allocations: 4 kB / 0.5003 GB, free: 2.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002411/0.588, allocations: 0.5939 MB / 0.5009 GB, free: 2.309 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.0003746/0.5884, allocations: 167 kB / 0.501 GB, free: 2.137 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004493/0.5929, allocations: 2.402 MB / 0.5034 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5929, allocations: 0 / 0.5034 GB, free: 15.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.5955, allocations: 1.72 MB / 0.5051 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003174/0.5987, allocations: 0.5153 MB / 0.5056 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/0.6105, allocations: 5.919 MB / 0.5114 GB, free: 7.445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002712/0.6133, allocations: 2.363 MB / 0.5137 GB, free: 5.051 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001573/0.6149, allocations: 416.8 kB / 0.5141 GB, free: 4.641 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005233/0.6154, allocations: 135.4 kB / 0.5142 GB, free: 4.508 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.6154, allocations: 0 / 0.5142 GB, free: 4.508 MB / 446.1 MB Notification: Performance of Templates: time 0.05828/0.6737, allocations: 31.53 MB / 0.545 GB, free: 4.914 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/jenkins/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/jenkins/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