Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.002254/0.002255, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.179/2.179, allocations: 222.9 MB / 241.8 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 46.39 kB / 300.6 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1478, allocations: 49.44 MB / 350.1 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.02025/0.1681, allocations: 10.83 MB / 360.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.1797, allocations: 3.583 MB / 364.5 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.1831, allocations: 59.75 kB / 364.5 MB, free: 6.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004147/0.1873, allocations: 0.7186 MB / 365.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005437/0.1928, allocations: 0.7732 MB / 366 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.1952, allocations: 409.4 kB / 366.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006638/0.2019, allocations: 3.247 MB / 369.7 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3181/0.5201, allocations: 2.308 MB / 372 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004796/0.5249, allocations: 1.203 MB / 373.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005215/0.5302, allocations: 1.692 MB / 374.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002261/0.5325, allocations: 232.2 kB / 375.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.5369, allocations: 344.1 kB / 375.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004215/0.5412, allocations: 0.9241 MB / 376.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007607/0.5488, allocations: 1.522 MB / 377.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.5594, allocations: 4.027 MB / 381.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.5595, allocations: 0 / 381.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.5595, allocations: 0 / 381.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002595/0.5598, allocations: 1.344 kB / 381.9 MB, free: 9.305 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01887/0.5787, allocations: 3.392 MB / 385.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.76e-05/0.5788, allocations: 9 kB / 385.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003531/0.5823, allocations: 338.3 kB / 385.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007717/0.5901, allocations: 1.77 MB / 387.4 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004769/0.5906, allocations: 198.1 kB / 387.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001822/0.5925, allocations: 251.1 kB / 387.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01559/0.6081, allocations: 3.284 MB / 391.1 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002478/0.6084, allocations: 5.969 kB / 391.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00132/0.6098, allocations: 102.1 kB / 391.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002888/0.6101, allocations: 126.1 kB / 391.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01116/0.6213, allocations: 2.746 MB / 394.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0335/0.6548, allocations: 10.5 MB / 404.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.6583, allocations: 1.355 MB / 406 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002125/0.6604, allocations: 0.7848 MB / 406.7 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000476/0.6609, allocations: 206.7 kB / 406.9 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/0.661, allocations: 46.56 kB / 407 MB, free: 8.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 5.66e-06/0.6611, allocations: 0 / 407 MB, free: 8.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.02469/0.6858, allocations: 6.887 MB / 413.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.556e-05/0.6859, allocations: 67.12 kB / 413.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006358/0.6923, allocations: 1.795 MB / 415.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003908/0.6927, allocations: 41.7 kB / 415.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001801/0.6946, allocations: 1.276 MB / 417.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009264/0.6955, allocations: 428.5 kB / 417.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001311/0.6969, allocations: 295.2 kB / 417.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.697, allocations: 309 kB / 418.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/0.6995, allocations: 0.7769 MB / 418.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002695/0.7022, allocations: 1.288 MB / 420.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004813/0.7071, allocations: 2.21 MB / 422.3 MB, free: 8.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/0.7071, allocations: 7.938 kB / 422.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007597/0.7147, allocations: 2.481 MB / 424.8 MB, free: 6.316 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.646e-05/0.7149, allocations: 12 kB / 424.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.743e-05/0.715, allocations: 19.98 kB / 424.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.716, allocations: 234.4 kB / 425.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.7185, allocations: 423.5 kB / 425.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003983/0.7225, allocations: 2.998 MB / 428.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/0.7257, allocations: 127.7 kB / 428.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000499/0.7262, allocations: 71.98 kB / 428.7 MB, free: 2.219 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003177/0.7294, allocations: 0.8203 MB / 429.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/0.7306, allocations: 185.7 kB / 429.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007092/0.7378, allocations: 2.044 MB / 431.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.192e-05/0.7379, allocations: 14.62 kB / 431.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.31e-05/0.7379, allocations: 0 / 431.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.358e-05/0.738, allocations: 7.969 kB / 431.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01872/0.7567, allocations: 4.751 MB / 436.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.88e-05/0.7568, allocations: 8 kB / 436.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001917/0.7587, allocations: 262.7 kB / 436.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009117/0.7597, allocations: 207 kB / 437 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.7599, allocations: 24 kB / 437 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004578/0.7645, allocations: 2.981 MB / 440 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/0.7646, allocations: 7.844 kB / 440 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009492/0.7741, allocations: 3.125 MB / 443.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002682/0.7769, allocations: 434.6 kB / 443.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/0.7783, allocations: 24 kB / 443.6 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/0.7809, allocations: 95.81 kB / 443.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000444/0.7814, allocations: 72.89 kB / 443.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002218/0.7817, allocations: 35.98 kB / 443.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004876/0.7866, allocations: 1.224 MB / 445 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.21e-07/0.7866, allocations: 0 / 445 MB, free: 1.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004778/0.7914, allocations: 492 kB / 445.5 MB, free: 1.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0009675/0.7924, allocations: 198.2 kB / 445.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.007346/0.7998, allocations: 2.341 MB / 448 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.979e-06/0.7999, allocations: 0 / 448 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003528/0.8034, allocations: 1.341 MB / 449.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005817/0.8093, allocations: 468.5 kB / 449.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.8296, allocations: 6.086 MB / 455.9 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004607/0.8342, allocations: 1.974 MB / 457.9 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.8359, allocations: 151.4 kB / 458 MB, free: 4.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.785e-06/0.8359, allocations: 4 kB / 458 MB, free: 4.426 MB / 366.1 MB Notification: Performance of Templates: time 0.1761/1.012, allocations: 82.55 MB / 0.5279 GB, free: 1.957 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches