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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 110.5 kB / 17.93 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 193.8 kB / 18.86 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.1 MB / 224.7 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 51.92 kB / 280.8 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09119, allocations: 46.63 MB / 327.4 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01511/0.1063, allocations: 14.93 MB / 342.4 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1165, allocations: 5.023 MB / 347.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003276/0.1199, allocations: 79.69 kB / 347.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00365/0.1236, allocations: 0.9483 MB / 348.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004684/0.1283, allocations: 1.127 MB / 349.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002619/0.1309, allocations: 0.8148 MB / 350.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006988/0.1379, allocations: 3.678 MB / 354 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006787/0.1448, allocations: 3.258 MB / 357.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004091/0.149, allocations: 1.662 MB / 359 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005018/0.154, allocations: 2.047 MB / 361 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001978/0.1561, allocations: 476 kB / 361.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003516/0.1596, allocations: 0.6911 MB / 362.2 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002728/0.1624, allocations: 1.138 MB / 363.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00591/0.1684, allocations: 2.038 MB / 365.3 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.1787, allocations: 5.257 MB / 370.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.1788, allocations: 0 / 370.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1788, allocations: 0 / 370.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001981/0.179, allocations: 0 / 370.6 MB, free: 9.391 MB / 318.1 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.02129/0.2003, allocations: 4.23 MB / 374.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.924e-05/0.2004, allocations: 15.97 kB / 374.8 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006646/0.2071, allocations: 0.6328 MB / 375.5 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008246/0.2154, allocations: 2.082 MB / 377.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005031/0.2159, allocations: 238.8 kB / 377.8 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.2175, allocations: 323.8 kB / 378.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2327/0.4503, allocations: 4.037 MB / 382.1 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002862/0.4506, allocations: 6.359 kB / 382.1 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001242/0.4519, allocations: 126.2 kB / 382.3 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004289/0.4523, allocations: 147.6 kB / 382.4 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01329/0.4657, allocations: 3.378 MB / 385.8 MB, free: 47.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03609/0.5018, allocations: 13.34 MB / 399.1 MB, free: 38.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006061/0.5079, allocations: 3.968 MB / 403.1 MB, free: 35.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002734/0.5107, allocations: 0.9945 MB / 404.1 MB, free: 34.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00715/0.5179, allocations: 2.666 MB / 406.8 MB, free: 32.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.518, allocations: 39.53 kB / 406.8 MB, free: 32.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 6.693e-06/0.518, allocations: 0 / 406.8 MB, free: 32.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01682/0.5349, allocations: 6 MB / 412.8 MB, free: 28.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.535, allocations: 64.72 kB / 412.9 MB, free: 28.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004182/0.5392, allocations: 1.893 MB / 414.8 MB, free: 26.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002648/0.5395, allocations: 45.7 kB / 414.8 MB, free: 26.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.5405, allocations: 1.504 MB / 416.3 MB, free: 24.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005252/0.541, allocations: 492.4 kB / 416.8 MB, free: 24.42 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008668/0.5419, allocations: 331.2 kB / 417.1 MB, free: 24.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.542, allocations: 306.9 kB / 417.4 MB, free: 23.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.5437, allocations: 0.773 MB / 418.2 MB, free: 23.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002038/0.5458, allocations: 1.375 MB / 419.6 MB, free: 21.37 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004081/0.5499, allocations: 2.317 MB / 421.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/0.55, allocations: 8 kB / 421.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005915/0.5559, allocations: 2.47 MB / 424.4 MB, free: 16.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.318e-05/0.556, allocations: 15.94 kB / 424.4 MB, free: 16.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.541e-05/0.556, allocations: 24.09 kB / 424.4 MB, free: 16.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000444/0.5565, allocations: 114.5 kB / 424.5 MB, free: 16.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003094/0.5596, allocations: 499.2 kB / 425 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.5608, allocations: 1.406 MB / 426.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/0.5636, allocations: 107.8 kB / 426.5 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/0.564, allocations: 83.98 kB / 426.6 MB, free: 13.92 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002492/0.5665, allocations: 0.989 MB / 427.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/0.5673, allocations: 201.5 kB / 427.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/0.5724, allocations: 1.968 MB / 429.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.5725, allocations: 16 kB / 429.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.5725, allocations: 0 / 429.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.22e-05/0.5725, allocations: 7.969 kB / 429.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01292/0.5855, allocations: 4.992 MB / 434.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.5855, allocations: 4 kB / 434.8 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/0.5881, allocations: 319.8 kB / 435.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000452/0.5886, allocations: 94.52 kB / 435.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/0.5888, allocations: 28 kB / 435.2 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.5899, allocations: 1.382 MB / 436.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.5899, allocations: 0 / 436.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006837/0.5967, allocations: 3.085 MB / 439.7 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001482/0.5983, allocations: 454.4 kB / 440.1 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007275/0.599, allocations: 28 kB / 440.1 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/0.6013, allocations: 83.95 kB / 440.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.6017, allocations: 93.12 kB / 440.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001912/0.6019, allocations: 32 kB / 440.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.004157/0.6061, allocations: 1.289 MB / 441.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.6061, allocations: 0 / 441.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00365/0.6098, allocations: 0.5273 MB / 442.1 MB, free: 14 MB / 334.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006496/0.6105, allocations: 171 kB / 442.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.01029/0.6208, allocations: 2.83 MB / 445.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.6209, allocations: 0 / 445.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002986/0.6239, allocations: 1.178 MB / 446.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/0.629, allocations: 0.5098 MB / 446.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/0.6496, allocations: 7.042 MB / 453.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004472/0.6542, allocations: 2.212 MB / 456.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/0.6555, allocations: 171.4 kB / 456.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 1.282e-06/0.6556, allocations: 0 / 456.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Templates: time 0.2671/0.9227, allocations: 85.81 MB / 0.5294 GB, free: 133.1 MB / 414.1 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/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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches