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.001365/0.001365, allocations: 112.7 kB / 17.28 MB, free: 6.199 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.00133/0.00133, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.374/1.374, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.00122/0.00122, allocations: 47.94 kB / 280.2 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08763, allocations: 46.63 MB / 326.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01417/0.1018, allocations: 12.68 MB / 339.5 MB, free: 8.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007623/0.1095, allocations: 4.214 MB / 343.7 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001581/0.1111, allocations: 63.75 kB / 343.7 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002428/0.1135, allocations: 0.8629 MB / 344.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003507/0.1171, allocations: 1.166 MB / 345.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.1188, allocations: 0.7798 MB / 346.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004381/0.1232, allocations: 4.191 MB / 350.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.1264, allocations: 3.184 MB / 353.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.1284, allocations: 1.764 MB / 355.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002203/0.1306, allocations: 2.098 MB / 357.8 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005767/0.1312, allocations: 0.5039 MB / 358.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.1325, allocations: 0.7185 MB / 359 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.1336, allocations: 1.13 MB / 360.1 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002427/0.136, allocations: 2.124 MB / 362.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005653/0.1417, allocations: 6.672 MB / 368.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1417, allocations: 0 / 368.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1417, allocations: 0 / 368.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.1418, allocations: 0 / 368.9 MB, free: 10.39 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01007/0.1519, allocations: 4.382 MB / 373.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.152, allocations: 8.031 kB / 373.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004157/0.1561, allocations: 0.8163 MB / 374.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004171/0.1603, allocations: 2.26 MB / 376.4 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.1605, allocations: 238.6 kB / 376.6 MB, free: 2.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005908/0.1611, allocations: 320 kB / 377 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1497/0.3109, allocations: 4.248 MB / 381.2 MB, free: 48.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/0.3111, allocations: 3.406 kB / 381.2 MB, free: 48.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006826/0.3118, allocations: 135.4 kB / 381.3 MB, free: 48.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002365/0.312, allocations: 141 kB / 381.5 MB, free: 48.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006769/0.3188, allocations: 3.653 MB / 385.1 MB, free: 47.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.3374, allocations: 13.5 MB / 398.6 MB, free: 38.9 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.3422, allocations: 6.866 MB / 405.5 MB, free: 32.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/0.344, allocations: 1.42 MB / 406.9 MB, free: 31.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00515/0.3492, allocations: 3.634 MB / 410.5 MB, free: 28.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.3493, allocations: 54.62 kB / 410.6 MB, free: 28.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.605e-06/0.3493, allocations: 0 / 410.6 MB, free: 28.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01086/0.3601, allocations: 6.63 MB / 417.2 MB, free: 23.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.534e-05/0.3602, allocations: 68.72 kB / 417.3 MB, free: 23.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.3622, allocations: 1.866 MB / 419.2 MB, free: 21.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-05/0.3623, allocations: 49.7 kB / 419.2 MB, free: 21.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000546/0.3629, allocations: 1.412 MB / 420.6 MB, free: 19.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.3631, allocations: 0.4912 MB / 421.1 MB, free: 19.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.3635, allocations: 307.3 kB / 421.4 MB, free: 19.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.3635, allocations: 305.1 kB / 421.7 MB, free: 18.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009575/0.3645, allocations: 0.7574 MB / 422.5 MB, free: 18.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.3656, allocations: 1.228 MB / 423.7 MB, free: 16.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002085/0.3677, allocations: 2.101 MB / 425.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.3677, allocations: 4 kB / 425.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003598/0.3713, allocations: 2.674 MB / 428.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.3714, allocations: 8 kB / 428.5 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.3714, allocations: 16 kB / 428.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.3726, allocations: 0.5027 MB / 429 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3739, allocations: 383.4 kB / 429.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006273/0.3802, allocations: 6.926 MB / 436.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3816, allocations: 83.8 kB / 436.4 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.3817, allocations: 76.08 kB / 436.5 MB, free: 3.359 MB / 318.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.001295/0.383, allocations: 1.043 MB / 437.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.3832, allocations: 193.7 kB / 437.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003499/0.3867, allocations: 2.508 MB / 440.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.3868, allocations: 15.94 kB / 440.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3868, allocations: 8 kB / 440.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.3868, allocations: 7.969 kB / 440.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007694/0.3945, allocations: 5.539 MB / 445.8 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3945, allocations: 0 / 445.8 MB, free: 9.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009891/0.3955, allocations: 219.9 kB / 446 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.3968, allocations: 0.5019 MB / 446.5 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.793e-05/0.3969, allocations: 39.98 kB / 446.5 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/0.4075, allocations: 11.41 MB / 457.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4075, allocations: 8 kB / 457.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005668/0.4132, allocations: 3.557 MB / 461.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009806/0.4142, allocations: 458.6 kB / 461.9 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002448/0.4144, allocations: 28 kB / 462 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009274/0.4154, allocations: 71.95 kB / 462 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/0.4157, allocations: 113 kB / 462.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.334e-05/0.4158, allocations: 40 kB / 462.2 MB, free: 8.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001791/0.4176, allocations: 1.289 MB / 463.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4176, allocations: 4 kB / 463.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001874/0.4194, allocations: 0.582 MB / 464.1 MB, free: 6.805 MB / 350.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.0003079/0.4198, allocations: 157.3 kB / 464.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005344/0.4251, allocations: 2.844 MB / 467.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4251, allocations: 0 / 467.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002329/0.4275, allocations: 1.724 MB / 468.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/0.4297, allocations: 0.5218 MB / 469.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009869/0.4396, allocations: 7.308 MB / 476.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/0.4415, allocations: 2.374 MB / 479 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001458/0.443, allocations: 412.8 kB / 479.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/0.4434, allocations: 127.4 kB / 479.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4434, allocations: 0 / 479.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of Templates: time 0.05167/0.4951, allocations: 30.92 MB / 0.4985 GB, free: 8.25 MB / 398.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","../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