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.001079/0.001079, allocations: 92.33 kB / 16.94 MB, free: 5.961 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.001279/0.001279, allocations: 183.4 kB / 17.82 MB, free: 5.645 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.658/1.658, allocations: 205.4 MB / 224 MB, free: 13.15 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.0005263/0.0005269, allocations: 12 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1057, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01314/0.1189, allocations: 10.32 MB / 338.7 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009364/0.1283, allocations: 4.077 MB / 342.7 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.1307, allocations: 59.75 kB / 342.8 MB, free: 5.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003146/0.1339, allocations: 0.7502 MB / 343.5 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004757/0.1386, allocations: 1.114 MB / 344.6 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.1408, allocations: 0.5807 MB / 345.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006304/0.1471, allocations: 2.761 MB / 348 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003244/0.1504, allocations: 2.181 MB / 350.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002291/0.1527, allocations: 1.238 MB / 351.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002578/0.1553, allocations: 1.482 MB / 352.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006017/0.1559, allocations: 208 kB / 353.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001396/0.1573, allocations: 379.7 kB / 353.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007073/0.1581, allocations: 0.7359 MB / 354.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.1591, allocations: 0.7382 MB / 354.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005721/0.1648, allocations: 5.477 MB / 360.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1649, allocations: 0 / 360.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.2e-06/0.1649, allocations: 0 / 360.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002384/0.1651, allocations: 0 / 360.4 MB, free: 3.867 MB / 302.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.01075/0.1759, allocations: 3.747 MB / 364.2 MB, free: 48 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.176, allocations: 11.97 kB / 364.2 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005636/0.1816, allocations: 0.8195 MB / 365 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007938/0.1896, allocations: 2.217 MB / 367.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004808/0.1902, allocations: 238.2 kB / 367.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.1923, allocations: 311.9 kB / 367.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.203, allocations: 4.207 MB / 372 MB, free: 8.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.393e-05/0.2031, allocations: 15.89 kB / 372 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000314/0.2034, allocations: 127.8 kB / 372.1 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.2036, allocations: 150.2 kB / 372.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007837/0.2114, allocations: 3.647 MB / 375.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2067/0.4181, allocations: 13.51 MB / 389.4 MB, free: 42.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005456/0.4236, allocations: 6.854 MB / 396.3 MB, free: 36.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00552/0.4292, allocations: 3.245 MB / 399.5 MB, free: 34.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.4292, allocations: 43.81 kB / 399.5 MB, free: 34.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=130): time 2.706e-06/0.4292, allocations: 0 / 399.5 MB, free: 34.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.01193/0.4412, allocations: 6.756 MB / 406.3 MB, free: 29.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.4412, allocations: 72.41 kB / 406.4 MB, free: 29.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.4434, allocations: 1.799 MB / 408.2 MB, free: 28.92 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.4435, allocations: 50.95 kB / 408.2 MB, free: 28.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006606/0.4442, allocations: 1.413 MB / 409.6 MB, free: 27.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003007/0.4445, allocations: 0.5119 MB / 410.1 MB, free: 27.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.87e-05/0.4446, allocations: 36.19 kB / 410.2 MB, free: 27.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.376e-05/0.4447, allocations: 377.5 kB / 410.5 MB, free: 26.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.4457, allocations: 0.7823 MB / 411.3 MB, free: 26.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.4469, allocations: 1.222 MB / 412.6 MB, free: 25.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.448, allocations: 0.9985 MB / 413.5 MB, free: 24.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.448, allocations: 3.656 kB / 413.6 MB, free: 24.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.003868/0.4519, allocations: 2.695 MB / 416.2 MB, free: 23.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.452, allocations: 14.84 kB / 416.3 MB, free: 23.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/0.452, allocations: 12 kB / 416.3 MB, free: 23.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.4532, allocations: 0.5041 MB / 416.8 MB, free: 22.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00141/0.4546, allocations: 399.4 kB / 417.2 MB, free: 22.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006763/0.4614, allocations: 6.523 MB / 423.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4632, allocations: 87.84 kB / 423.8 MB, free: 15.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.4634, allocations: 72.2 kB / 423.8 MB, free: 15.35 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001788/0.4652, allocations: 1.052 MB / 424.9 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004828/0.4656, allocations: 189.7 kB / 425.1 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/0.4693, allocations: 2.557 MB / 427.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.4694, allocations: 19.98 kB / 427.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.4694, allocations: 4 kB / 427.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4694, allocations: 3.984 kB / 427.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008104/0.4775, allocations: 5.601 MB / 433.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.4776, allocations: 4 kB / 433.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4786, allocations: 239.8 kB / 433.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001144/0.4798, allocations: 498.4 kB / 434 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-05/0.4799, allocations: 35.98 kB / 434 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009849/0.4897, allocations: 10.57 MB / 444.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4898, allocations: 4.031 kB / 444.6 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007041/0.4968, allocations: 3.748 MB / 448.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.4981, allocations: 466.4 kB / 448.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004019/0.4985, allocations: 35.95 kB / 448.8 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.4996, allocations: 75.95 kB / 448.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/0.4999, allocations: 109.1 kB / 449 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.522e-05/0.5, allocations: 47.92 kB / 449.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002023/0.502, allocations: 1.239 MB / 450.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.502, allocations: 4 kB / 450.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002512/0.5045, allocations: 0.5863 MB / 450.9 MB, free: 3.344 MB / 334.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 (108): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000396/0.505, allocations: 163.9 kB / 451.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0044/0.5094, allocations: 2.441 MB / 453.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.199e-06/0.5094, allocations: 1.938 kB / 453.5 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002917/0.5123, allocations: 1.772 MB / 455.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/0.515, allocations: 487.5 kB / 455.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.5288, allocations: 7.192 MB / 462.9 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002722/0.5316, allocations: 2.421 MB / 465.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001738/0.5333, allocations: 421 kB / 465.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/0.5337, allocations: 131.4 kB / 465.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of SimCode: time 1.133e-06/0.5338, allocations: 0 / 465.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of Templates: time 0.0501/0.5839, allocations: 28.29 MB / 494.2 MB, free: 7.855 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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