Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smpm3.is.1.|smpm3.is.2.|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm3.stator.strayReluctance.port_p.Phi.im|smpm3.stator.strayReluctance.port_p.Phi.re|smpmM.is.1.|smpmM.is.2.|smpmM.is.3.|smpmM.is.4.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x|vfController3.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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.002554/0.002553, allocations: 183.1 kB / 8.157 MB, free: 2.203 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.833/1.833, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.001257/0.001257, allocations: 94.83 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.118e-05/1.132e-05, allocations: 4 kB / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2334, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.4113, allocations: 116.4 MB / 478.2 MB, free: 1.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.4117, allocations: 83.95 kB / 478.3 MB, free: 1.492 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.7358/1.148, allocations: 167.1 MB / 0.6303 GB, free: 9.363 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007009/1.148, allocations: 175.8 kB / 0.6305 GB, free: 9.191 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02857/1.177, allocations: 6.71 MB / 0.637 GB, free: 2.398 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.177, allocations: 8.031 kB / 0.637 GB, free: 2.391 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01417/1.191, allocations: 1.606 MB / 0.6386 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02457/1.216, allocations: 5.975 MB / 0.6444 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005634/1.216, allocations: 236 kB / 0.6447 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002952/1.219, allocations: 431.8 kB / 0.6451 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02809/1.248, allocations: 7.234 MB / 0.6521 GB, free: 2.816 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1812/1.429, allocations: 8.414 MB / 0.6603 GB, free: 74.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002953/1.429, allocations: 9.531 kB / 0.6604 GB, free: 74.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001731/1.431, allocations: 7.609 kB / 0.6604 GB, free: 74.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003193/1.431, allocations: 349.7 kB / 0.6607 GB, free: 74.49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07718/1.508, allocations: 29.41 MB / 0.6894 GB, free: 69.02 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005644/1.514, allocations: 2.331 MB / 0.6917 GB, free: 69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008038/1.522, allocations: 3.195 MB / 0.6948 GB, free: 68.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02459/1.547, allocations: 8.76 MB / 0.7034 GB, free: 67.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.973e-05/1.547, allocations: 75.52 kB / 0.7034 GB, free: 67.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=352): time 7.323e-06/1.547, allocations: 3 kB / 0.7034 GB, free: 67.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=360): time 0.02871/1.576, allocations: 9.491 MB / 0.7127 GB, free: 66.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/1.576, allocations: 89.67 kB / 0.7128 GB, free: 66.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006062/1.582, allocations: 2.552 MB / 0.7153 GB, free: 65.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007141/1.583, allocations: 29.02 kB / 0.7153 GB, free: 65.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/1.584, allocations: 2.418 MB / 0.7177 GB, free: 64.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001569/1.585, allocations: 1.176 MB / 0.7188 GB, free: 63.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/1.586, allocations: 0 / 0.7188 GB, free: 63.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002759/1.586, allocations: 481.4 kB / 0.7193 GB, free: 63.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/1.59, allocations: 1.633 MB / 0.7209 GB, free: 63.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004988/1.595, allocations: 2.774 MB / 0.7236 GB, free: 61.03 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006538/1.602, allocations: 2.262 MB / 0.7258 GB, free: 60.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.271e-05/1.602, allocations: 13.59 kB / 0.7258 GB, free: 60.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01438/1.616, allocations: 5.043 MB / 0.7307 GB, free: 58.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/1.616, allocations: 6.938 kB / 0.7307 GB, free: 58.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.079e-05/1.617, allocations: 34.22 kB / 0.7308 GB, free: 58.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/1.618, allocations: 394.5 kB / 0.7312 GB, free: 58.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007958/1.626, allocations: 0.9889 MB / 0.7321 GB, free: 58.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008286/1.634, allocations: 6.971 MB / 0.7389 GB, free: 52.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003864/1.638, allocations: 95.77 kB / 0.739 GB, free: 52.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000543/1.639, allocations: 178.8 kB / 0.7392 GB, free: 52.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 514 * 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,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000872/1.64, allocations: 149.4 kB / 0.7393 GB, free: 52.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/1.641, allocations: 380.5 kB / 0.7397 GB, free: 51.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/1.655, allocations: 4.891 MB / 0.7445 GB, free: 49.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.136e-05/1.655, allocations: 34.06 kB / 0.7445 GB, free: 49.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-05/1.655, allocations: 14.95 kB / 0.7445 GB, free: 49.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.985e-05/1.656, allocations: 18.44 kB / 0.7445 GB, free: 49.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03135/1.687, allocations: 11.07 MB / 0.7553 GB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/1.687, allocations: 3.75 kB / 0.7554 GB, free: 44.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005376/1.692, allocations: 0.5469 MB / 0.7559 GB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004198/1.697, allocations: 0.8708 MB / 0.7567 GB, free: 44.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006436/1.697, allocations: 44.14 kB / 0.7568 GB, free: 44.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02307/1.72, allocations: 15.3 MB / 0.7717 GB, free: 32.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/1.72, allocations: 13.53 kB / 0.7717 GB, free: 32.69 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01818/1.739, allocations: 7.623 MB / 0.7792 GB, free: 28.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003147/1.742, allocations: 0.8428 MB / 0.78 GB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001199/1.743, allocations: 19.38 kB / 0.78 GB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004084/1.747, allocations: 114.8 kB / 0.7801 GB, free: 28.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006094/1.748, allocations: 191.4 kB / 0.7803 GB, free: 28.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003259/1.748, allocations: 104.2 kB / 0.7804 GB, free: 28.24 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.004383/1.752, allocations: 1.881 MB / 0.7822 GB, free: 27.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00679/1.759, allocations: 1.147 MB / 0.7834 GB, free: 27.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 282 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001415/1.761, allocations: 0.5223 MB / 0.7839 GB, free: 27.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01071/1.772, allocations: 4.662 MB / 0.7884 GB, free: 23.86 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/1.772, allocations: 0 / 0.7884 GB, free: 23.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007394/1.779, allocations: 2.976 MB / 0.7913 GB, free: 21.08 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006984/1.786, allocations: 0.7267 MB / 0.792 GB, free: 20.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03352/1.82, allocations: 10.56 MB / 0.8024 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009858/1.829, allocations: 4.7 MB / 0.807 GB, free: 7.336 MB / 410.7 MB Notification: Performance of SimCode: time 1.884e-06/1.83, allocations: 2.344 kB / 0.807 GB, free: 7.336 MB / 410.7 MB Notification: Performance of Templates: time 0.8356/2.665, allocations: 293.8 MB / 1.094 GB, free: 28.77 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_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/SMPM_Inverter_MultiPhase/SMPM_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches