Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.is.1.|smrM.is.2.|smrM.is.3.|smrM.is.4.|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") [: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 4.0.0+maint.om/package.mo): time 0.0009971/0.0009972, allocations: 184.2 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 221.4 MB / 230 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008985/0.0008985, allocations: 108.1 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.117e-06/9.137e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2244, allocations: 50.4 MB / 386.9 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1261/0.3505, allocations: 114.9 MB / 0.4901 GB, free: 3.895 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3508, allocations: 100.9 kB / 0.4902 GB, free: 3.797 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4935/0.8443, allocations: 157.8 MB / 0.6443 GB, free: 11.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004842/0.8448, allocations: 163.8 kB / 0.6444 GB, free: 10.91 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.019/0.8638, allocations: 6.478 MB / 0.6507 GB, free: 4.344 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.8639, allocations: 15.91 kB / 0.6507 GB, free: 4.328 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009435/0.8733, allocations: 1.529 MB / 0.6522 GB, free: 2.789 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.163/1.036, allocations: 5.75 MB / 0.6579 GB, free: 70.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003723/1.037, allocations: 226.4 kB / 0.6581 GB, free: 70.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002358/1.039, allocations: 421.2 kB / 0.6585 GB, free: 70.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01512/1.054, allocations: 7.023 MB / 0.6653 GB, free: 70.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/1.074, allocations: 8.104 MB / 0.6732 GB, free: 70.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003246/1.074, allocations: 9.891 kB / 0.6733 GB, free: 70.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001828/1.076, allocations: 7.375 kB / 0.6733 GB, free: 70.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002577/1.077, allocations: 325.6 kB / 0.6736 GB, free: 70.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05017/1.127, allocations: 27.67 MB / 0.7006 GB, free: 65.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003042/1.13, allocations: 2.148 MB / 0.7027 GB, free: 65.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004141/1.134, allocations: 3.057 MB / 0.7057 GB, free: 65.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01345/1.148, allocations: 8.36 MB / 0.7138 GB, free: 64.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/1.148, allocations: 73.2 kB / 0.7139 GB, free: 64.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=328): time 5.069e-06/1.148, allocations: 0 / 0.7139 GB, free: 64.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=334): time 0.01734/1.165, allocations: 8.997 MB / 0.7227 GB, free: 62.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/1.165, allocations: 87.91 kB / 0.7228 GB, free: 62.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004277/1.169, allocations: 2.374 MB / 0.7251 GB, free: 62.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003489/1.17, allocations: 25.7 kB / 0.7251 GB, free: 62.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/1.171, allocations: 2.456 MB / 0.7275 GB, free: 60.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008539/1.172, allocations: 1.093 MB / 0.7286 GB, free: 59.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/1.172, allocations: 0 / 0.7286 GB, free: 59.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002048/1.172, allocations: 465 kB / 0.729 GB, free: 59.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002143/1.174, allocations: 1.557 MB / 0.7306 GB, free: 58.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002594/1.177, allocations: 2.584 MB / 0.7331 GB, free: 56.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003464/1.18, allocations: 2.144 MB / 0.7352 GB, free: 55.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.279e-05/1.18, allocations: 7.375 kB / 0.7352 GB, free: 55.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=503) (initialization): time 0.008184/1.189, allocations: 4.959 MB / 0.74 GB, free: 54.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/1.189, allocations: 3.906 kB / 0.74 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.088e-05/1.189, allocations: 32.41 kB / 0.7401 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009752/1.19, allocations: 394.1 kB / 0.7404 GB, free: 53.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/1.193, allocations: 0.9021 MB / 0.7413 GB, free: 53.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005626/1.199, allocations: 6.973 MB / 0.7481 GB, free: 47.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003609/1.203, allocations: 92.38 kB / 0.7482 GB, free: 47.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008051/1.203, allocations: 165.4 kB / 0.7484 GB, free: 47.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (478): * Single equations (assignments): 472 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001117/1.205, allocations: 213.7 kB / 0.7486 GB, free: 47.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.206, allocations: 350.1 kB / 0.7489 GB, free: 47.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009395/1.215, allocations: 4.647 MB / 0.7534 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/1.215, allocations: 33 kB / 0.7535 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.913e-05/1.215, allocations: 11.72 kB / 0.7535 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.39e-05/1.215, allocations: 19.12 kB / 0.7535 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.233, allocations: 10.45 MB / 0.7637 GB, free: 40.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/1.233, allocations: 3.938 kB / 0.7637 GB, free: 40.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002478/1.235, allocations: 0.5082 MB / 0.7642 GB, free: 40.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002502/1.238, allocations: 0.8485 MB / 0.765 GB, free: 40.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004859/1.238, allocations: 34.66 kB / 0.7651 GB, free: 40.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01263/1.251, allocations: 15.09 MB / 0.7798 GB, free: 28.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.251, allocations: 3.875 kB / 0.7798 GB, free: 28.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01007/1.261, allocations: 7.043 MB / 0.7867 GB, free: 25.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002071/1.263, allocations: 0.7795 MB / 0.7874 GB, free: 24.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009796/1.264, allocations: 20.08 kB / 0.7875 GB, free: 24.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/1.266, allocations: 105.4 kB / 0.7876 GB, free: 24.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/1.267, allocations: 181.6 kB / 0.7877 GB, free: 24.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002385/1.267, allocations: 99.41 kB / 0.7878 GB, free: 24.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003278/1.27, allocations: 1.753 MB / 0.7895 GB, free: 23.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004415/1.275, allocations: 1.094 MB / 0.7906 GB, free: 22.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 258 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007735/1.276, allocations: 469.3 kB / 0.7911 GB, free: 22.17 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005716/1.281, allocations: 4.432 MB / 0.7954 GB, free: 18.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.281, allocations: 0.9375 kB / 0.7954 GB, free: 18.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003772/1.285, allocations: 2.814 MB / 0.7981 GB, free: 15.43 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003698/1.289, allocations: 0.6339 MB / 0.7988 GB, free: 14.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0213/1.31, allocations: 10.17 MB / 0.8087 GB, free: 5.855 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005784/1.316, allocations: 4.622 MB / 0.8132 GB, free: 2.332 MB / 426.7 MB Notification: Performance of SimCode: time 7.51e-07/1.316, allocations: 6.734 kB / 0.8132 GB, free: 2.328 MB / 426.7 MB Notification: Performance of Templates: time 0.2243/1.54, allocations: 53.12 MB / 0.8651 GB, free: 56.11 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches