Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc3.is.1.|aimc3.is.2.|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc3.stator.strayReluctance.port_p.Phi.im|aimc3.stator.strayReluctance.port_p.Phi.re|aimcM.is.1.|aimcM.is.2.|aimcM.is.3.|aimcM.is.4.|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.stator.strayReluctance.port_p.Phi.im|aimcM.stator.strayReluctance.port_p.Phi.re|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc3.is.1.|aimc3.is.2.|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc3.stator.strayReluctance.port_p.Phi.im|aimc3.stator.strayReluctance.port_p.Phi.re|aimcM.is.1.|aimcM.is.2.|aimcM.is.3.|aimcM.is.4.|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.stator.strayReluctance.port_p.Phi.im|aimcM.stator.strayReluctance.port_p.Phi.re|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003492/0.003492, allocations: 179.7 kB / 8.152 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001294/0.001293, allocations: 90.25 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.046e-05/1.055e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2439, allocations: 47.56 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1737/0.4177, allocations: 111.1 MB / 473 MB, free: 6.902 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/0.4181, allocations: 86.02 kB / 473 MB, free: 6.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.7878/1.206, allocations: 180.5 MB / 0.6382 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008722/1.207, allocations: 191.8 kB / 0.6384 GB, free: 424 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03798/1.245, allocations: 7.613 MB / 0.6458 GB, free: 8.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/1.245, allocations: 11.97 kB / 0.6458 GB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01728/1.262, allocations: 1.828 MB / 0.6476 GB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1997/1.462, allocations: 6.984 MB / 0.6545 GB, free: 73.74 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006365/1.463, allocations: 259.8 kB / 0.6547 GB, free: 73.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003649/1.466, allocations: 483.9 kB / 0.6552 GB, free: 73.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03132/1.498, allocations: 8.691 MB / 0.6637 GB, free: 73.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03907/1.537, allocations: 9.748 MB / 0.6732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004979/1.537, allocations: 6.094 kB / 0.6732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003032/1.54, allocations: 4.062 kB / 0.6732 GB, free: 72.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004102/1.541, allocations: 375.7 kB / 0.6735 GB, free: 72.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09871/1.64, allocations: 33.23 MB / 0.706 GB, free: 67.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00706/1.647, allocations: 2.643 MB / 0.7086 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01012/1.657, allocations: 3.696 MB / 0.7122 GB, free: 67.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03508/1.692, allocations: 10.21 MB / 0.7222 GB, free: 64.03 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.474e-05/1.692, allocations: 72.81 kB / 0.7222 GB, free: 63.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=397): time 7.243e-06/1.692, allocations: 0 / 0.7222 GB, free: 63.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=403): time 0.03979/1.732, allocations: 11.54 MB / 0.7335 GB, free: 59.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/1.732, allocations: 95.27 kB / 0.7336 GB, free: 58.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009634/1.742, allocations: 3.2 MB / 0.7367 GB, free: 57.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009866/1.743, allocations: 31.27 kB / 0.7367 GB, free: 57.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001653/1.744, allocations: 2.574 MB / 0.7393 GB, free: 55.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002167/1.747, allocations: 1.293 MB / 0.7405 GB, free: 54.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004675/1.747, allocations: 0 / 0.7405 GB, free: 54.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004017/1.748, allocations: 489.2 kB / 0.741 GB, free: 54.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006586/1.754, allocations: 2.02 MB / 0.743 GB, free: 53.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007787/1.762, allocations: 3.064 MB / 0.7459 GB, free: 51.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009431/1.772, allocations: 2.667 MB / 0.7485 GB, free: 50.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-05/1.772, allocations: 11.09 kB / 0.7486 GB, free: 50.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.02066/1.792, allocations: 6.091 MB / 0.7545 GB, free: 48.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/1.792, allocations: 13.19 kB / 0.7545 GB, free: 48.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.302e-05/1.793, allocations: 30.94 kB / 0.7545 GB, free: 48.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003175/1.796, allocations: 0.7812 MB / 0.7553 GB, free: 47.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008286/1.804, allocations: 0.9407 MB / 0.7562 GB, free: 47.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02072/1.825, allocations: 14.17 MB / 0.7701 GB, free: 36.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/1.829, allocations: 103.8 kB / 0.7702 GB, free: 36.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.83, allocations: 179.4 kB / 0.7703 GB, free: 36.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 500 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001309/1.832, allocations: 141 kB / 0.7705 GB, free: 36.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/1.833, allocations: 437.5 kB / 0.7709 GB, free: 36.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02147/1.855, allocations: 6.116 MB / 0.7769 GB, free: 33.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.48e-05/1.855, allocations: 36 kB / 0.7769 GB, free: 33.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-05/1.855, allocations: 23.38 kB / 0.7769 GB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.851e-05/1.855, allocations: 18.66 kB / 0.7769 GB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04166/1.897, allocations: 13.41 MB / 0.79 GB, free: 22.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.659e-05/1.897, allocations: 4 kB / 0.79 GB, free: 22.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00504/1.902, allocations: 0.4929 MB / 0.7905 GB, free: 21.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0065/1.908, allocations: 1.358 MB / 0.7918 GB, free: 20.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000933/1.909, allocations: 49.31 kB / 0.7919 GB, free: 20.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2161/2.126, allocations: 22.46 MB / 0.8138 GB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/2.126, allocations: 9.984 kB / 0.8138 GB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02649/2.152, allocations: 9.391 MB / 0.823 GB, free: 62.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004711/2.157, allocations: 1 MB / 0.824 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003734/2.161, allocations: 28.48 kB / 0.824 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008717/2.169, allocations: 140 kB / 0.8241 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001855/2.171, allocations: 263.5 kB / 0.8244 GB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001247/2.173, allocations: 111 kB / 0.8245 GB, free: 62.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.01075/2.184, allocations: 2.385 MB / 0.8268 GB, free: 62.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0138/2.197, allocations: 1.327 MB / 0.8281 GB, free: 62.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (275): * Single equations (assignments): 266 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00218/2.2, allocations: 427.4 kB / 0.8285 GB, free: 62.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02261/2.222, allocations: 5.916 MB / 0.8343 GB, free: 61.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.895e-05/2.222, allocations: 3.188 kB / 0.8343 GB, free: 61.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0162/2.239, allocations: 3.971 MB / 0.8382 GB, free: 60.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01219/2.251, allocations: 0.8065 MB / 0.839 GB, free: 60.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06775/2.319, allocations: 12.35 MB / 0.851 GB, free: 57.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02014/2.339, allocations: 5.453 MB / 0.8564 GB, free: 57.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.715e-06/2.339, allocations: 0 / 0.8564 GB, free: 57.12 MB / 410.7 MB Notification: Performance of Templates: time 1.216/3.555, allocations: 433.1 MB / 1.279 GB, free: 79.76 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_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_DOL_MultiPhase/AIMC_DOL_MultiPhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches