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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") [: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.001603/0.001603, allocations: 179.2 kB / 8.153 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.658/1.658, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001218/0.001218, allocations: 86.33 kB / 261.8 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.436e-06/8.536e-06, allocations: 0 / 314.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2263, allocations: 47.55 MB / 361.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.184/0.4104, allocations: 118 MB / 479.9 MB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003438/0.4108, allocations: 83.95 kB / 480 MB, free: 15.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4652/0.876, allocations: 79.07 MB / 0.5459 GB, free: 92.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004402/0.8765, allocations: 94 kB / 0.546 GB, free: 92 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.0147/0.8912, allocations: 3.436 MB / 0.5494 GB, free: 89.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.8913, allocations: 8.594 kB / 0.5494 GB, free: 89.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005561/0.8969, allocations: 0.6442 MB / 0.55 GB, free: 89.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.911, allocations: 3.377 MB / 0.5533 GB, free: 87.21 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002737/0.9113, allocations: 116.1 kB / 0.5534 GB, free: 87.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/0.9127, allocations: 206.2 kB / 0.5536 GB, free: 87.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01148/0.9242, allocations: 3.249 MB / 0.5568 GB, free: 83.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.9383, allocations: 3.873 MB / 0.5606 GB, free: 79.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000166/0.9385, allocations: 3.938 kB / 0.5606 GB, free: 79.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009155/0.9394, allocations: 4 kB / 0.5606 GB, free: 79.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000172/0.9396, allocations: 162.8 kB / 0.5607 GB, free: 79.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03881/0.9784, allocations: 13.95 MB / 0.5744 GB, free: 65.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003234/0.9817, allocations: 1.187 MB / 0.5755 GB, free: 64.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003451/0.9853, allocations: 1.289 MB / 0.5768 GB, free: 63.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01299/0.9983, allocations: 4.104 MB / 0.5808 GB, free: 58.92 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.9984, allocations: 47.88 kB / 0.5808 GB, free: 58.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=156): time 4.338e-06/0.9984, allocations: 0 / 0.5808 GB, free: 58.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=160): time 0.01418/1.013, allocations: 4.66 MB / 0.5854 GB, free: 54.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/1.013, allocations: 68.72 kB / 0.5854 GB, free: 54.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004037/1.017, allocations: 1.568 MB / 0.587 GB, free: 52.42 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003884/1.017, allocations: 25.7 kB / 0.587 GB, free: 52.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006453/1.018, allocations: 1.253 MB / 0.5882 GB, free: 51.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007349/1.019, allocations: 0.5235 MB / 0.5887 GB, free: 50.58 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/1.019, allocations: 0 / 0.5887 GB, free: 50.58 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/1.019, allocations: 394.7 kB / 0.5891 GB, free: 50.19 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/1.021, allocations: 0.785 MB / 0.5899 GB, free: 49.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002746/1.024, allocations: 1.398 MB / 0.5912 GB, free: 47.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003119/1.027, allocations: 1.079 MB / 0.5923 GB, free: 46.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-05/1.027, allocations: 4 kB / 0.5923 GB, free: 46.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.00727/1.034, allocations: 2.465 MB / 0.5947 GB, free: 44.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/1.034, allocations: 4 kB / 0.5947 GB, free: 44.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.235e-05/1.034, allocations: 20 kB / 0.5947 GB, free: 44.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000577/1.035, allocations: 143 kB / 0.5949 GB, free: 43.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/1.039, allocations: 491.2 kB / 0.5953 GB, free: 43.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/1.042, allocations: 2.936 MB / 0.5982 GB, free: 40.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/1.044, allocations: 59.95 kB / 0.5983 GB, free: 40.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002411/1.044, allocations: 92.05 kB / 0.5983 GB, free: 40.17 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004312/1.045, allocations: 92.95 kB / 0.5984 GB, free: 40.07 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006726/1.046, allocations: 209.3 kB / 0.5986 GB, free: 39.86 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006721/1.052, allocations: 2.354 MB / 0.6009 GB, free: 37.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/1.052, allocations: 16 kB / 0.601 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/1.052, allocations: 7.938 kB / 0.601 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/1.052, allocations: 7.969 kB / 0.601 GB, free: 37.42 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/1.066, allocations: 5.326 MB / 0.6062 GB, free: 31.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/1.066, allocations: 4 kB / 0.6062 GB, free: 31.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002437/1.069, allocations: 271.9 kB / 0.6064 GB, free: 31.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/1.07, allocations: 275.2 kB / 0.6067 GB, free: 31.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.07, allocations: 19.89 kB / 0.6067 GB, free: 31.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007819/1.078, allocations: 6.701 MB / 0.6133 GB, free: 24.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/1.078, allocations: 4 kB / 0.6133 GB, free: 24.25 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008421/1.086, allocations: 3.749 MB / 0.6169 GB, free: 20.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.088, allocations: 486.3 kB / 0.6174 GB, free: 19.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005853/1.089, allocations: 8 kB / 0.6174 GB, free: 19.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/1.091, allocations: 55.84 kB / 0.6174 GB, free: 19.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/1.091, allocations: 77.19 kB / 0.6175 GB, free: 19.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/1.091, allocations: 43.98 kB / 0.6176 GB, free: 19.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002752/1.094, allocations: 1.165 MB / 0.6187 GB, free: 18.47 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003612/1.098, allocations: 0.5351 MB / 0.6192 GB, free: 17.94 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009525/1.099, allocations: 441.5 kB / 0.6196 GB, free: 17.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005411/1.104, allocations: 2.252 MB / 0.6218 GB, free: 15.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.104, allocations: 7.938 kB / 0.6219 GB, free: 15.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003516/1.108, allocations: 1.407 MB / 0.6232 GB, free: 13.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/1.112, allocations: 425.9 kB / 0.6236 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01811/1.13, allocations: 5.039 MB / 0.6286 GB, free: 8.242 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005862/1.136, allocations: 2.621 MB / 0.6311 GB, free: 5.59 MB / 394.7 MB Notification: Performance of SimCode: time 2.284e-06/1.136, allocations: 0 / 0.6311 GB, free: 5.59 MB / 394.7 MB Notification: Performance of Templates: time 0.3273/1.463, allocations: 93.61 MB / 0.7225 GB, free: 97.61 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_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_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches