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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002236/0.002236, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001056/0.001056, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.089e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.08948, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4491/0.5387, allocations: 115.7 MB / 484.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/0.539, allocations: 87.92 kB / 484.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5759/1.115, allocations: 74.98 MB / 0.5467 GB, free: 92.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/1.115, allocations: 0 / 0.5467 GB, free: 92.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004317/1.116, allocations: 84.77 kB / 0.5468 GB, free: 92.01 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01459/1.13, allocations: 3.139 MB / 0.5499 GB, free: 90.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.834e-05/1.13, allocations: 9.469 kB / 0.5499 GB, free: 90.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005485/1.136, allocations: 0.5915 MB / 0.5505 GB, free: 90.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01351/1.149, allocations: 3.108 MB / 0.5535 GB, free: 90.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004174/1.15, allocations: 232.4 kB / 0.5537 GB, free: 90 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/1.151, allocations: 312.6 kB / 0.554 GB, free: 90 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01333/1.165, allocations: 3.929 MB / 0.5579 GB, free: 89.55 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001884/1.165, allocations: 7.094 kB / 0.5579 GB, free: 89.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001046/1.166, allocations: 132.8 kB / 0.558 GB, free: 89.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002202/1.166, allocations: 151.8 kB / 0.5581 GB, free: 89.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/1.177, allocations: 3.081 MB / 0.5612 GB, free: 89.51 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03395/1.211, allocations: 13.44 MB / 0.5743 GB, free: 83.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005731/1.217, allocations: 3.914 MB / 0.5781 GB, free: 79.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002778/1.22, allocations: 0.9917 MB / 0.5791 GB, free: 79.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007435/1.227, allocations: 2.658 MB / 0.5817 GB, free: 77.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/1.227, allocations: 46.41 kB / 0.5817 GB, free: 77.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=107): time 5.05e-06/1.227, allocations: 0 / 0.5817 GB, free: 77.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01679/1.244, allocations: 5.179 MB / 0.5868 GB, free: 75.53 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/1.244, allocations: 63.56 kB / 0.5868 GB, free: 75.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004705/1.249, allocations: 1.645 MB / 0.5884 GB, free: 74.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004537/1.249, allocations: 55.08 kB / 0.5885 GB, free: 74.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/1.251, allocations: 1.434 MB / 0.5899 GB, free: 73.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/1.252, allocations: 491.8 kB / 0.5904 GB, free: 73.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/1.253, allocations: 39.69 kB / 0.5904 GB, free: 73.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/1.253, allocations: 381.7 kB / 0.5908 GB, free: 72.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003059/1.256, allocations: 0.7346 MB / 0.5915 GB, free: 72.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003244/1.259, allocations: 1.328 MB / 0.5928 GB, free: 71.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/1.263, allocations: 0.9759 MB / 0.5937 GB, free: 71.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-05/1.263, allocations: 3.844 kB / 0.5937 GB, free: 71.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00818/1.271, allocations: 2.277 MB / 0.596 GB, free: 70.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/1.271, allocations: 17.78 kB / 0.596 GB, free: 70.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.288e-05/1.271, allocations: 18.19 kB / 0.596 GB, free: 70.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007257/1.272, allocations: 120.3 kB / 0.5961 GB, free: 70.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005074/1.277, allocations: 487.9 kB / 0.5966 GB, free: 70.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001556/1.278, allocations: 1.314 MB / 0.5979 GB, free: 68.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004142/1.283, allocations: 109 kB / 0.598 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005502/1.283, allocations: 88.86 kB / 0.598 GB, free: 68.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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): 2 * Torn equation systems: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006467/1.284, allocations: 218.6 kB / 0.5982 GB, free: 68.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009119/1.285, allocations: 203.8 kB / 0.5984 GB, free: 68.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007329/1.292, allocations: 1.906 MB / 0.6003 GB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-05/1.292, allocations: 14.16 kB / 0.6003 GB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/1.292, allocations: 3.656 kB / 0.6003 GB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.831e-05/1.292, allocations: 7.312 kB / 0.6003 GB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/1.311, allocations: 4.952 MB / 0.6052 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.795e-05/1.311, allocations: 3.75 kB / 0.6052 GB, free: 65.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003876/1.315, allocations: 320.6 kB / 0.6055 GB, free: 65.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006787/1.316, allocations: 96.5 kB / 0.6056 GB, free: 65.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002889/1.316, allocations: 30.92 kB / 0.6056 GB, free: 65.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/1.317, allocations: 1.277 MB / 0.6068 GB, free: 63.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.317, allocations: 3.938 kB / 0.6068 GB, free: 63.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/1.329, allocations: 3.134 MB / 0.6099 GB, free: 61.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002608/1.332, allocations: 460.8 kB / 0.6103 GB, free: 61.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009096/1.333, allocations: 31.2 kB / 0.6104 GB, free: 61.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003538/1.336, allocations: 85.45 kB / 0.6105 GB, free: 61.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004962/1.337, allocations: 92.23 kB / 0.6105 GB, free: 61.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002041/1.337, allocations: 36 kB / 0.6106 GB, free: 61.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005141/1.342, allocations: 1.245 MB / 0.6118 GB, free: 60.16 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.342, allocations: 4 kB / 0.6118 GB, free: 60.15 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003523/1.346, allocations: 0.5817 MB / 0.6124 GB, free: 59.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001166/1.347, allocations: 0.4912 MB / 0.6128 GB, free: 59.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004954/1.352, allocations: 2.143 MB / 0.6149 GB, free: 57.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.352, allocations: 4.375 kB / 0.6149 GB, free: 57.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002651/1.355, allocations: 1.153 MB / 0.6161 GB, free: 55.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004254/1.359, allocations: 486.9 kB / 0.6165 GB, free: 55.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/1.373, allocations: 4.456 MB / 0.6209 GB, free: 51.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003297/1.376, allocations: 2.28 MB / 0.6231 GB, free: 49.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/1.377, allocations: 162.6 kB / 0.6233 GB, free: 49.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.813e-06/1.377, allocations: 0 / 0.6233 GB, free: 49.56 MB / 410.7 MB Notification: Performance of Templates: time 0.4566/1.834, allocations: 82.38 MB / 0.7037 GB, free: 99.43 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_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_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches