Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001462/0.001462, allocations: 179.5 kB / 8.475 MB, free: 1.859 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.414/1.414, allocations: 205.2 MB / 214.1 MB, free: 1.805 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009938/0.0009937, allocations: 83.33 kB / 262.1 MB, free: 1.754 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.885e-06/7.925e-06, allocations: 4 kB / 315 MB, free: 23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1167, allocations: 47.58 MB / 362.6 MB, free: 7.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3622/0.479, allocations: 111.4 MB / 473.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.4793, allocations: 85.33 kB / 474 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5786/1.058, allocations: 180.5 MB / 0.6392 GB, free: 44.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007801/1.059, allocations: 203.6 kB / 0.6394 GB, free: 44.57 MB / 410.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.02592/1.085, allocations: 7.618 MB / 0.6468 GB, free: 36.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/1.085, allocations: 8.031 kB / 0.6468 GB, free: 36.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/1.096, allocations: 1.824 MB / 0.6486 GB, free: 35.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/1.115, allocations: 6.99 MB / 0.6554 GB, free: 28.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005525/1.115, allocations: 264 kB / 0.6557 GB, free: 27.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003568/1.119, allocations: 479.8 kB / 0.6561 GB, free: 27.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02177/1.141, allocations: 8.697 MB / 0.6646 GB, free: 18.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02791/1.169, allocations: 9.741 MB / 0.6741 GB, free: 8.676 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002588/1.169, allocations: 11.91 kB / 0.6741 GB, free: 8.664 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001705/1.171, allocations: 8 kB / 0.6741 GB, free: 8.656 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002956/1.171, allocations: 376.3 kB / 0.6745 GB, free: 8.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2494/1.42, allocations: 33.22 MB / 0.7069 GB, free: 80.28 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003683/1.424, allocations: 2.649 MB / 0.7095 GB, free: 80.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005026/1.429, allocations: 3.691 MB / 0.7131 GB, free: 80.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01877/1.448, allocations: 10.21 MB / 0.7231 GB, free: 79.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/1.448, allocations: 75.84 kB / 0.7232 GB, free: 79.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=397): time 6.422e-06/1.448, allocations: 2.031 kB / 0.7232 GB, free: 79.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=403): time 0.02117/1.469, allocations: 11.54 MB / 0.7345 GB, free: 77.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/1.469, allocations: 92.86 kB / 0.7345 GB, free: 77.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005337/1.475, allocations: 3.201 MB / 0.7377 GB, free: 77.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004684/1.475, allocations: 29.42 kB / 0.7377 GB, free: 76.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/1.476, allocations: 2.788 MB / 0.7404 GB, free: 75.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009358/1.477, allocations: 1.292 MB / 0.7417 GB, free: 74.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/1.478, allocations: 0 / 0.7417 GB, free: 74.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/1.478, allocations: 487 kB / 0.7421 GB, free: 74.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/1.48, allocations: 2.021 MB / 0.7441 GB, free: 73.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/1.483, allocations: 3.061 MB / 0.7471 GB, free: 71.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003803/1.487, allocations: 2.669 MB / 0.7497 GB, free: 70.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/1.487, allocations: 11.66 kB / 0.7497 GB, free: 70.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.01063/1.498, allocations: 6.346 MB / 0.7559 GB, free: 68.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/1.498, allocations: 3.5 kB / 0.7559 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-05/1.498, allocations: 33.88 kB / 0.756 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/1.5, allocations: 0.7997 MB / 0.7567 GB, free: 67.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004211/1.504, allocations: 0.937 MB / 0.7577 GB, free: 67.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/1.516, allocations: 13.95 MB / 0.7713 GB, free: 56.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004458/1.52, allocations: 108.8 kB / 0.7714 GB, free: 56.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006298/1.521, allocations: 180.4 kB / 0.7715 GB, free: 56.84 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.0007829/1.522, allocations: 222.8 kB / 0.7718 GB, free: 56.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006927/1.522, allocations: 436.8 kB / 0.7722 GB, free: 56.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.533, allocations: 6.103 MB / 0.7781 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-05/1.533, allocations: 38.03 kB / 0.7782 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.36e-05/1.533, allocations: 19.12 kB / 0.7782 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-05/1.533, allocations: 20.7 kB / 0.7782 GB, free: 54.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/1.554, allocations: 13.42 MB / 0.7913 GB, free: 48.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.554, allocations: 3.938 kB / 0.7913 GB, free: 48.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/1.556, allocations: 497.5 kB / 0.7918 GB, free: 48.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003446/1.56, allocations: 1.372 MB / 0.7931 GB, free: 47.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002808/1.56, allocations: 51.28 kB / 0.7932 GB, free: 47.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0199/1.58, allocations: 22.46 MB / 0.8151 GB, free: 25.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.58, allocations: 4 kB / 0.8151 GB, free: 25.41 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01319/1.593, allocations: 9.397 MB / 0.8243 GB, free: 16.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/1.596, allocations: 1.005 MB / 0.8253 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001088/1.597, allocations: 31.8 kB / 0.8253 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002516/1.6, allocations: 134.6 kB / 0.8254 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004726/1.6, allocations: 255.6 kB / 0.8257 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002594/1.6, allocations: 115.5 kB / 0.8258 GB, free: 15.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003247/1.604, allocations: 2.388 MB / 0.8281 GB, free: 13.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005357/1.609, allocations: 1.331 MB / 0.8294 GB, free: 12.12 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.0007961/1.61, allocations: 429.9 kB / 0.8298 GB, free: 11.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007089/1.617, allocations: 5.918 MB / 0.8356 GB, free: 6.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.617, allocations: 0 / 0.8356 GB, free: 6.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004981/1.622, allocations: 3.967 MB / 0.8395 GB, free: 2.703 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005376/1.627, allocations: 0.8067 MB / 0.8403 GB, free: 2.066 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1719/1.799, allocations: 12.48 MB / 0.8525 GB, free: 71.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007151/1.807, allocations: 5.524 MB / 0.8579 GB, free: 71.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.413e-06/1.807, allocations: 0 / 0.8579 GB, free: 71.02 MB / 410.7 MB Notification: Performance of Templates: time 0.1074/1.914, allocations: 68.34 MB / 0.9246 GB, free: 65.18 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_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_DOL_MultiPhase/AIMC_DOL_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches