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.0006342/0.0006342, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.0006783/0.0006784, allocations: 175.3 kB / 18.21 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.119/1.119, allocations: 223.3 MB / 242.3 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002054/0.0002054, allocations: 11.94 kB / 302.1 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07135/0.07157, allocations: 50.41 MB / 352.5 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008917/0.08052, allocations: 10.25 MB / 362.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004235/0.08477, allocations: 3.548 MB / 366.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005352/0.08531, allocations: 59.69 kB / 366.4 MB, free: 5.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.08654, allocations: 0.707 MB / 367.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.08793, allocations: 0.7654 MB / 367.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006074/0.08854, allocations: 411.5 kB / 368.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.09099, allocations: 3.258 MB / 371.5 MB, free: 412 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1252/0.2162, allocations: 2.276 MB / 373.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.2178, allocations: 1.024 MB / 374.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002087/0.2199, allocations: 1.455 MB / 376.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005462/0.2205, allocations: 152.6 kB / 376.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009467/0.2215, allocations: 262.4 kB / 376.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007822/0.2223, allocations: 0.8116 MB / 377.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.2235, allocations: 1.397 MB / 378.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00296/0.2264, allocations: 3.924 MB / 382.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2265, allocations: 5.375 kB / 382.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2265, allocations: 0 / 382.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.081e-05/0.2265, allocations: 0 / 382.8 MB, free: 8.953 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.004261/0.2308, allocations: 2.853 MB / 385.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.2308, allocations: 9.594 kB / 385.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006348/0.2315, allocations: 334.7 kB / 386 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00208/0.2336, allocations: 1.771 MB / 387.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.2337, allocations: 197.4 kB / 387.9 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/0.234, allocations: 262.1 kB / 388.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004186/0.2382, allocations: 3.282 MB / 391.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.259e-05/0.2383, allocations: 7.094 kB / 391.5 MB, free: 4.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.2385, allocations: 108.1 kB / 391.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.2386, allocations: 121.8 kB / 391.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/0.2421, allocations: 2.75 MB / 394.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01109/0.2532, allocations: 10.53 MB / 405 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.2548, allocations: 1.365 MB / 406.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.2559, allocations: 0.7956 MB / 407.2 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002364/0.2562, allocations: 201.8 kB / 407.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.2562, allocations: 51.5 kB / 407.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.205e-06/0.2562, allocations: 2.719 kB / 407.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01252/0.2687, allocations: 6.941 MB / 414.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.2688, allocations: 64.41 kB / 414.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.2709, allocations: 1.789 MB / 416.2 MB, free: 108 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.792e-05/0.271, allocations: 45.7 kB / 416.2 MB, free: 56 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000782/0.2718, allocations: 1.273 MB / 417.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/0.2721, allocations: 428.5 kB / 417.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.2723, allocations: 136.3 kB / 418.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.882e-05/0.2724, allocations: 309.1 kB / 418.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.2734, allocations: 0.773 MB / 419.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.2748, allocations: 1.297 MB / 420.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.2773, allocations: 2.212 MB / 422.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.2773, allocations: 8 kB / 422.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003349/0.2806, allocations: 2.481 MB / 425.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.2807, allocations: 12 kB / 425.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.2807, allocations: 16 kB / 425.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.2812, allocations: 238.1 kB / 425.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.2825, allocations: 423.9 kB / 425.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.2846, allocations: 2.991 MB / 428.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001041/0.2857, allocations: 139.8 kB / 428.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.2858, allocations: 68 kB / 429 MB, free: 2.73 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.001132/0.2869, allocations: 0.8217 MB / 429.8 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/0.2872, allocations: 193.6 kB / 430 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002957/0.2902, allocations: 2.045 MB / 432.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.2902, allocations: 12 kB / 432.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2902, allocations: 0 / 432.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.2902, allocations: 7.969 kB / 432.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006214/0.2964, allocations: 4.761 MB / 436.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.2965, allocations: 3.984 kB / 436.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/0.2974, allocations: 265.8 kB / 437.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004588/0.2979, allocations: 203.5 kB / 437.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.788e-05/0.298, allocations: 28 kB / 437.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002042/0.3, allocations: 2.977 MB / 440.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3, allocations: 4.062 kB / 440.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003829/0.3039, allocations: 3.133 MB / 443.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005911/0.3045, allocations: 442.7 kB / 443.9 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/0.3047, allocations: 24 kB / 443.9 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008372/0.3055, allocations: 95.81 kB / 444 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.3056, allocations: 84.17 kB / 444.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-05/0.3057, allocations: 35.98 kB / 444.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001483/0.3072, allocations: 1.224 MB / 445.3 MB, free: 2.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3072, allocations: 3.938 kB / 445.3 MB, free: 2.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001215/0.3084, allocations: 484 kB / 445.8 MB, free: 1.582 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.0003043/0.3087, allocations: 202.1 kB / 446 MB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.3116, allocations: 2.338 MB / 448.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3117, allocations: 4 kB / 448.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.3132, allocations: 1.344 MB / 449.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/0.3156, allocations: 477.1 kB / 450.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006743/0.3223, allocations: 6.144 MB / 456.3 MB, free: 6.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.3238, allocations: 1.981 MB / 458.3 MB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004601/0.3243, allocations: 147.4 kB / 458.4 MB, free: 4.824 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3243, allocations: 3.938 kB / 458.4 MB, free: 4.82 MB / 366.1 MB Notification: Performance of Templates: time 0.07092/0.3952, allocations: 82.18 MB / 0.5279 GB, free: 2.727 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