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.001232/0.001232, allocations: 99.02 kB / 16.5 MB, free: 6.648 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.00109/0.00109, allocations: 194 kB / 17.42 MB, free: 6.066 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.291/1.291, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000925/0.000925, allocations: 51.67 kB / 299.9 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08167/0.08261, allocations: 49.45 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01173/0.09437, allocations: 10.82 MB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006547/0.101, allocations: 3.594 MB / 363.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.1027, allocations: 59.75 kB / 363.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.105, allocations: 0.7186 MB / 364.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002754/0.1078, allocations: 0.7654 MB / 365.4 MB, free: 4.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.1089, allocations: 411.5 kB / 365.8 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003401/0.1123, allocations: 3.256 MB / 369 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1519/0.2642, allocations: 2.297 MB / 371.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.2662, allocations: 1.205 MB / 372.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002492/0.2687, allocations: 1.691 MB / 374.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005641/0.2693, allocations: 232.4 kB / 374.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.2703, allocations: 343.7 kB / 374.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009042/0.2712, allocations: 0.9283 MB / 375.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001534/0.2728, allocations: 1.52 MB / 377.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003892/0.2767, allocations: 4.707 MB / 381.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.2767, allocations: 4.344 kB / 381.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2767, allocations: 3.938 kB / 381.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.934e-05/0.2768, allocations: 3.281 kB / 381.9 MB, free: 9.148 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.00654/0.2833, allocations: 3.381 MB / 385.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.2834, allocations: 9.969 kB / 385.3 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008533/0.2842, allocations: 338.8 kB / 385.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.2868, allocations: 1.774 MB / 387.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.2869, allocations: 194.4 kB / 387.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003606/0.2873, allocations: 253.3 kB / 387.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004783/0.2921, allocations: 3.284 MB / 391.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.2921, allocations: 4.562 kB / 391.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/0.2924, allocations: 105.5 kB / 391.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/0.2925, allocations: 121.2 kB / 391.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004/0.2965, allocations: 2.752 MB / 394.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.3114, allocations: 10.49 MB / 404.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.3133, allocations: 1.361 MB / 406 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.3146, allocations: 0.7813 MB / 406.8 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000331/0.3149, allocations: 206.3 kB / 407 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.315, allocations: 43.56 kB / 407 MB, free: 8.012 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 5.04e-06/0.315, allocations: 11.94 kB / 407 MB, free: 8 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01471/0.3297, allocations: 6.896 MB / 413.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.585e-05/0.3298, allocations: 68.41 kB / 414 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.3324, allocations: 1.789 MB / 415.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.477e-05/0.3325, allocations: 45.7 kB / 415.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000817/0.3333, allocations: 1.271 MB / 417.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003348/0.3336, allocations: 427.2 kB / 417.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004631/0.3341, allocations: 299.2 kB / 417.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.3342, allocations: 305.1 kB / 418.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.3353, allocations: 0.7691 MB / 418.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.3368, allocations: 1.296 MB / 420.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002557/0.3394, allocations: 2.212 MB / 422.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3394, allocations: 4 kB / 422.4 MB, free: 8.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003714/0.3431, allocations: 2.473 MB / 424.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3431, allocations: 12 kB / 424.9 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.159e-05/0.3432, allocations: 19.98 kB / 424.9 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/0.3438, allocations: 234.2 kB / 425.1 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.3452, allocations: 419.8 kB / 425.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.3477, allocations: 3 MB / 428.5 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3491, allocations: 127.7 kB / 428.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.3492, allocations: 83.92 kB / 428.7 MB, free: 1.637 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.001375/0.3506, allocations: 0.8163 MB / 429.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.3509, allocations: 185.7 kB / 429.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003111/0.354, allocations: 2.044 MB / 431.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.354, allocations: 16 kB / 431.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.354, allocations: 0 / 431.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.354, allocations: 7.969 kB / 431.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007109/0.3611, allocations: 4.754 MB / 436.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3612, allocations: 0 / 436.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.3622, allocations: 267.1 kB / 436.8 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005216/0.3628, allocations: 203.8 kB / 437 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.802e-05/0.3629, allocations: 24 kB / 437 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/0.3651, allocations: 2.981 MB / 440 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.3651, allocations: 8.031 kB / 440 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004349/0.3695, allocations: 3.127 MB / 443.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/0.3706, allocations: 438.7 kB / 443.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/0.3709, allocations: 20 kB / 443.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009399/0.3718, allocations: 95.81 kB / 443.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.372, allocations: 84.55 kB / 443.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.942e-05/0.3721, allocations: 35.98 kB / 443.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00192/0.374, allocations: 1.224 MB / 445 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.374, allocations: 0 / 445 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001707/0.3758, allocations: 491.9 kB / 445.5 MB, free: 0.5039 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.0003895/0.3762, allocations: 198.6 kB / 445.7 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.3797, allocations: 2.338 MB / 448 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3797, allocations: 0 / 448 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001805/0.3815, allocations: 1.34 MB / 449.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.3838, allocations: 466.9 kB / 449.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008837/0.3927, allocations: 6.026 MB / 455.9 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001684/0.3944, allocations: 2.01 MB / 457.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001599/0.396, allocations: 0.4999 MB / 458.4 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004417/0.3964, allocations: 139.4 kB / 458.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3964, allocations: 0 / 458.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of Templates: time 0.04677/0.4432, allocations: 24.81 MB / 483.3 MB, free: 10.88 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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