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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002046/0.002046, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.956/1.956, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 92.83 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.113e-05/2.116e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.57 MB / 362.4 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.5377, allocations: 118.1 MB / 480.5 MB, free: 116 kB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.5381, allocations: 79.95 kB / 480.5 MB, free: 36 kB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5713/1.109, allocations: 79.37 MB / 0.5468 GB, free: 91.97 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.964e-06/1.11, allocations: 0 / 0.5468 GB, free: 91.97 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000358/1.11, allocations: 90.91 kB / 0.5469 GB, free: 91.95 MB / 395.1 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.01256/1.122, allocations: 3.441 MB / 0.5502 GB, free: 89.7 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/1.123, allocations: 7.312 kB / 0.5502 GB, free: 89.7 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004629/1.127, allocations: 0.6392 MB / 0.5509 GB, free: 89.38 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01198/1.139, allocations: 3.359 MB / 0.5541 GB, free: 87.19 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/1.139, allocations: 121.1 kB / 0.5543 GB, free: 87.18 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001038/1.14, allocations: 208.1 kB / 0.5545 GB, free: 87.17 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00938/1.15, allocations: 3.197 MB / 0.5576 GB, free: 84.31 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/1.162, allocations: 3.819 MB / 0.5613 GB, free: 80.36 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001352/1.162, allocations: 15.92 kB / 0.5613 GB, free: 80.34 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005104/1.162, allocations: 4 kB / 0.5613 GB, free: 80.34 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001883/1.162, allocations: 158.8 kB / 0.5615 GB, free: 80.18 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03092/1.193, allocations: 13.92 MB / 0.5751 GB, free: 65.96 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006422/1.2, allocations: 5.341 MB / 0.5803 GB, free: 59.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/1.203, allocations: 1.228 MB / 0.5815 GB, free: 58.73 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009344/1.212, allocations: 3.831 MB / 0.5852 GB, free: 54.85 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/1.212, allocations: 43.88 kB / 0.5853 GB, free: 54.8 MB / 395.1 MB Notification: Performance of pre-optimization done (n=132): time 4.829e-06/1.212, allocations: 4 kB / 0.5853 GB, free: 54.79 MB / 395.1 MB Notification: Performance of matching and sorting (n=136): time 0.01064/1.223, allocations: 4.324 MB / 0.5895 GB, free: 50.37 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/1.223, allocations: 68.67 kB / 0.5896 GB, free: 50.29 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003234/1.226, allocations: 1.545 MB / 0.5911 GB, free: 48.71 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.226, allocations: 29.7 kB / 0.5911 GB, free: 48.68 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/1.227, allocations: 1.581 MB / 0.5926 GB, free: 47.07 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/1.228, allocations: 461.2 kB / 0.5931 GB, free: 46.62 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/1.228, allocations: 4 kB / 0.5931 GB, free: 46.61 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/1.228, allocations: 378.8 kB / 0.5935 GB, free: 46.23 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/1.23, allocations: 0.6717 MB / 0.5941 GB, free: 45.57 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/1.231, allocations: 1.279 MB / 0.5954 GB, free: 44 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002364/1.234, allocations: 0.986 MB / 0.5963 GB, free: 43.02 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/1.234, allocations: 8 kB / 0.5963 GB, free: 43.01 MB / 395.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.005143/1.239, allocations: 2.238 MB / 0.5985 GB, free: 40.73 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/1.239, allocations: 16.5 kB / 0.5985 GB, free: 40.72 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.933e-05/1.239, allocations: 24 kB / 0.5986 GB, free: 40.7 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004957/1.24, allocations: 134.5 kB / 0.5987 GB, free: 40.55 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003222/1.243, allocations: 471.2 kB / 0.5991 GB, free: 40.09 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/1.245, allocations: 2.954 MB / 0.602 GB, free: 36.91 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002713/1.248, allocations: 79.81 kB / 0.6021 GB, free: 36.84 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000274/1.248, allocations: 87.98 kB / 0.6022 GB, free: 36.75 MB / 395.1 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 (229): * Single equations (assignments): 226 * 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.0003928/1.249, allocations: 164.2 kB / 0.6023 GB, free: 36.58 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003939/1.249, allocations: 193.6 kB / 0.6025 GB, free: 36.39 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005218/1.255, allocations: 2.152 MB / 0.6046 GB, free: 34.18 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.255, allocations: 16 kB / 0.6046 GB, free: 34.16 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/1.255, allocations: 4 kB / 0.6046 GB, free: 34.16 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.868e-05/1.255, allocations: 7.969 kB / 0.6046 GB, free: 34.15 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/1.266, allocations: 4.763 MB / 0.6093 GB, free: 29.29 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/1.266, allocations: 4 kB / 0.6093 GB, free: 29.28 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001961/1.268, allocations: 235.7 kB / 0.6095 GB, free: 29.05 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/1.269, allocations: 267.5 kB / 0.6098 GB, free: 28.78 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/1.269, allocations: 19.94 kB / 0.6098 GB, free: 28.76 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006887/1.276, allocations: 6.815 MB / 0.6165 GB, free: 21.49 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/1.276, allocations: 4 kB / 0.6165 GB, free: 21.49 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006744/1.283, allocations: 3.341 MB / 0.6197 GB, free: 17.97 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/1.284, allocations: 458.4 kB / 0.6202 GB, free: 17.5 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003556/1.285, allocations: 4 kB / 0.6202 GB, free: 17.5 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.286, allocations: 63.89 kB / 0.6202 GB, free: 17.44 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/1.287, allocations: 97.12 kB / 0.6203 GB, free: 17.34 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/1.287, allocations: 35.98 kB / 0.6203 GB, free: 17.31 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002181/1.289, allocations: 1.153 MB / 0.6215 GB, free: 16.13 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.289, allocations: 4 kB / 0.6215 GB, free: 16.13 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002713/1.292, allocations: 0.5235 MB / 0.622 GB, free: 15.61 MB / 395.1 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 (114): * Single equations (assignments): 110 * 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.0007129/1.292, allocations: 432.3 kB / 0.6224 GB, free: 15.21 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003704/1.296, allocations: 1.988 MB / 0.6243 GB, free: 13.18 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.296, allocations: 3.938 kB / 0.6243 GB, free: 13.18 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/1.299, allocations: 1.32 MB / 0.6256 GB, free: 11.82 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/1.302, allocations: 426.3 kB / 0.626 GB, free: 11.4 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/1.314, allocations: 4.821 MB / 0.6308 GB, free: 6.508 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00266/1.317, allocations: 2.435 MB / 0.6331 GB, free: 4.043 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/1.318, allocations: 175.3 kB / 0.6333 GB, free: 3.871 MB / 395.1 MB Notification: Performance of SimCode: time 1.232e-06/1.318, allocations: 0 / 0.6333 GB, free: 3.871 MB / 395.1 MB Notification: Performance of Templates: time 0.4623/1.78, allocations: 93.69 MB / 0.7248 GB, free: 57.32 MB / 411.1 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