Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00146/0.00146, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.417/1.417, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008461/0.0008462, allocations: 81.75 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.702e-05/3.73e-05, allocations: 4 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1197, allocations: 47.57 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3976/0.5174, allocations: 115.7 MB / 485.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.5177, allocations: 85.27 kB / 485.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4035/0.9212, allocations: 74.99 MB / 0.5477 GB, free: 92.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.9212, allocations: 0 / 0.5477 GB, free: 92.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002958/0.9215, allocations: 87.38 kB / 0.5477 GB, free: 92.52 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.009379/0.9309, allocations: 3.137 MB / 0.5508 GB, free: 91.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.931, allocations: 10.88 kB / 0.5508 GB, free: 91.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003096/0.9341, allocations: 0.5884 MB / 0.5514 GB, free: 91.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007016/0.9411, allocations: 3.111 MB / 0.5544 GB, free: 90.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.9413, allocations: 233 kB / 0.5546 GB, free: 90.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005488/0.9419, allocations: 312.2 kB / 0.5549 GB, free: 90.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006416/0.9483, allocations: 3.93 MB / 0.5588 GB, free: 90.05 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.232e-05/0.9484, allocations: 3.906 kB / 0.5588 GB, free: 90.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00029/0.9487, allocations: 129.7 kB / 0.5589 GB, free: 90.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.9488, allocations: 150.4 kB / 0.5591 GB, free: 90.04 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005032/0.9539, allocations: 3.088 MB / 0.5621 GB, free: 90.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01928/0.9732, allocations: 13.43 MB / 0.5752 GB, free: 83.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.9763, allocations: 3.923 MB / 0.579 GB, free: 80.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.9776, allocations: 0.9841 MB / 0.58 GB, free: 79.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003357/0.981, allocations: 2.67 MB / 0.5826 GB, free: 78.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.981, allocations: 45.91 kB / 0.5826 GB, free: 78.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=107): time 2.795e-06/0.981, allocations: 0 / 0.5826 GB, free: 78.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.008463/0.9895, allocations: 5.165 MB / 0.5877 GB, free: 75.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.288e-05/0.9895, allocations: 66.38 kB / 0.5877 GB, free: 75.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.9915, allocations: 1.645 MB / 0.5893 GB, free: 75.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.693e-05/0.9916, allocations: 45.67 kB / 0.5894 GB, free: 75.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006204/0.9922, allocations: 1.515 MB / 0.5909 GB, free: 73.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/0.9925, allocations: 485.2 kB / 0.5913 GB, free: 73.59 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/0.9926, allocations: 40.62 kB / 0.5914 GB, free: 73.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.9927, allocations: 375.2 kB / 0.5917 GB, free: 73.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009505/0.9936, allocations: 0.7381 MB / 0.5924 GB, free: 72.94 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.9948, allocations: 1.327 MB / 0.5937 GB, free: 71.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.996, allocations: 0.9778 MB / 0.5947 GB, free: 71.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.996, allocations: 3.594 kB / 0.5947 GB, free: 71.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003131/0.9991, allocations: 2.406 MB / 0.597 GB, free: 70.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.9991, allocations: 13.91 kB / 0.5971 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.9992, allocations: 20.66 kB / 0.5971 GB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003143/0.9995, allocations: 118.8 kB / 0.5972 GB, free: 70.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/1.001, allocations: 489.9 kB / 0.5977 GB, free: 70.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007264/1.002, allocations: 1.311 MB / 0.5989 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/1.003, allocations: 111.5 kB / 0.599 GB, free: 69.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/1.003, allocations: 89.03 kB / 0.5991 GB, free: 69.02 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.0002376/1.004, allocations: 217.8 kB / 0.5993 GB, free: 68.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002299/1.004, allocations: 201.3 kB / 0.5995 GB, free: 68.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/1.007, allocations: 1.917 MB / 0.6014 GB, free: 67.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/1.007, allocations: 11.47 kB / 0.6014 GB, free: 67.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/1.007, allocations: 3.438 kB / 0.6014 GB, free: 67.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/1.007, allocations: 9.859 kB / 0.6014 GB, free: 67.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006916/1.014, allocations: 4.94 MB / 0.6063 GB, free: 65.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/1.014, allocations: 7.672 kB / 0.6063 GB, free: 65.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.015, allocations: 316.7 kB / 0.6066 GB, free: 65.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/1.015, allocations: 95.97 kB / 0.6067 GB, free: 65.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.004e-05/1.015, allocations: 27.25 kB / 0.6067 GB, free: 65.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006883/1.016, allocations: 1.286 MB / 0.6079 GB, free: 64.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/1.016, allocations: 7.281 kB / 0.6079 GB, free: 64.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/1.02, allocations: 3.144 MB / 0.611 GB, free: 61.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.021, allocations: 463.2 kB / 0.6115 GB, free: 61.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/1.022, allocations: 31.91 kB / 0.6115 GB, free: 61.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009898/1.023, allocations: 85.41 kB / 0.6116 GB, free: 61.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/1.023, allocations: 83.69 kB / 0.6116 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.432e-05/1.023, allocations: 36 kB / 0.6117 GB, free: 61.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002131/1.025, allocations: 1.248 MB / 0.6129 GB, free: 60.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.025, allocations: 0 / 0.6129 GB, free: 60.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002112/1.027, allocations: 0.5817 MB / 0.6135 GB, free: 59.45 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.0006808/1.028, allocations: 0.508 MB / 0.614 GB, free: 59.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002905/1.031, allocations: 2.135 MB / 0.616 GB, free: 56.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/1.031, allocations: 128 / 0.616 GB, free: 56.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.032, allocations: 1.149 MB / 0.6172 GB, free: 55.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/1.034, allocations: 478 kB / 0.6176 GB, free: 55.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007767/1.042, allocations: 4.427 MB / 0.6219 GB, free: 51.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/1.044, allocations: 2.323 MB / 0.6242 GB, free: 49.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001884/1.046, allocations: 0.5106 MB / 0.6247 GB, free: 49.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/1.046, allocations: 151.2 kB / 0.6249 GB, free: 49.11 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/1.046, allocations: 0 / 0.6249 GB, free: 49.11 MB / 410.7 MB Notification: Performance of Templates: time 0.04695/1.093, allocations: 28.46 MB / 0.6527 GB, free: 25.07 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches