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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001942/0.001942, allocations: 100 kB / 21.18 MB, free: 0.5195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002085/0.002085, allocations: 181 kB / 24.45 MB, free: 3.863 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.92 kB / 371.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2533, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01372/0.267, allocations: 9.624 MB / 433.5 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007695/0.2747, allocations: 3.416 MB / 436.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.2769, allocations: 87.44 kB / 437 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.2797, allocations: 0.8073 MB / 437.8 MB, free: 492 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003639/0.2834, allocations: 0.9126 MB / 438.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.285, allocations: 471.3 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004748/0.2898, allocations: 2.931 MB / 442.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002527/0.2923, allocations: 1.512 MB / 443.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.2946, allocations: 1.41 MB / 445 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003274/0.2979, allocations: 1.685 MB / 446.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.2989, allocations: 372 kB / 447 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001382/0.3003, allocations: 467.8 kB / 447.5 MB, free: 6.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.3016, allocations: 1.095 MB / 448.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.3037, allocations: 1.342 MB / 449.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006169/0.3099, allocations: 4.928 MB / 454.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3099, allocations: 0 / 454.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3099, allocations: 4 kB / 454.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001484/0.31, allocations: 0 / 454.9 MB, free: 15.27 MB / 366.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.009103/0.3191, allocations: 3.398 MB / 458.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.3192, allocations: 12.03 kB / 458.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009734/0.3202, allocations: 346.9 kB / 458.6 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004372/0.3245, allocations: 1.756 MB / 460.4 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.3247, allocations: 197.3 kB / 460.6 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006261/0.3254, allocations: 263.8 kB / 460.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007143/0.3325, allocations: 3.355 MB / 464.2 MB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.611e-05/0.3326, allocations: 11.94 kB / 464.2 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.3329, allocations: 104 kB / 464.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/0.333, allocations: 120.9 kB / 464.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005702/0.3387, allocations: 2.744 MB / 467.1 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01752/0.3562, allocations: 9.036 MB / 476.2 MB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.3582, allocations: 1.066 MB / 477.2 MB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.3594, allocations: 0.703 MB / 478 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002362/0.3596, allocations: 60.92 kB / 478 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.3597, allocations: 43.56 kB / 478.1 MB, free: 7.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/0.3597, allocations: 0 / 478.1 MB, free: 7.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01546/0.3751, allocations: 6.613 MB / 484.7 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.3752, allocations: 68.34 kB / 484.7 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.3778, allocations: 1.641 MB / 486.4 MB, free: 15.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.3779, allocations: 45.7 kB / 486.4 MB, free: 15.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.379, allocations: 1.332 MB / 487.8 MB, free: 13.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000413/0.3794, allocations: 440.2 kB / 488.2 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/0.3799, allocations: 307.4 kB / 488.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3801, allocations: 305.1 kB / 488.8 MB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.3814, allocations: 0.7691 MB / 489.5 MB, free: 11.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.3832, allocations: 1.296 MB / 490.8 MB, free: 10.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.3864, allocations: 2.214 MB / 493.1 MB, free: 7.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.3864, allocations: 4 kB / 493.1 MB, free: 7.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004304/0.3907, allocations: 2.459 MB / 495.5 MB, free: 5.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.3908, allocations: 12 kB / 495.5 MB, free: 5.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.85e-05/0.3908, allocations: 16 kB / 495.5 MB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006683/0.3914, allocations: 243.9 kB / 495.8 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.3929, allocations: 415.3 kB / 496.2 MB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002985/0.3959, allocations: 2.986 MB / 499.2 MB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.3973, allocations: 127.8 kB / 499.3 MB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.3975, allocations: 71.98 kB / 499.4 MB, free: 1.387 MB / 398.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.001559/0.399, allocations: 0.8212 MB / 0.4885 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004253/0.3994, allocations: 182.8 kB / 0.4886 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/0.4032, allocations: 2.026 MB / 0.4906 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.4032, allocations: 12 kB / 0.4906 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.4032, allocations: 11.92 kB / 0.4906 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.4033, allocations: 3.984 kB / 0.4907 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008147/0.4114, allocations: 4.107 MB / 0.4947 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4114, allocations: 8.031 kB / 0.4947 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.4126, allocations: 259.6 kB / 0.4949 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005563/0.4131, allocations: 207.2 kB / 0.4951 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.868e-05/0.4132, allocations: 27.98 kB / 0.4951 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003111/0.4163, allocations: 2.95 MB / 0.498 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4163, allocations: 0 / 0.498 GB, free: 6.445 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005017/0.4213, allocations: 3.136 MB / 0.5011 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.4225, allocations: 334.7 kB / 0.5014 GB, free: 2.926 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.4228, allocations: 27.98 kB / 0.5014 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009545/0.4238, allocations: 91.88 kB / 0.5015 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.424, allocations: 92.72 kB / 0.5016 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.287e-05/0.424, allocations: 35.98 kB / 0.5016 GB, free: 2.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00197/0.426, allocations: 1.091 MB / 0.5027 GB, free: 1.598 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.426, allocations: 4 kB / 0.5027 GB, free: 1.594 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001848/0.4279, allocations: 487.9 kB / 0.5032 GB, free: 1.117 MB / 414.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.0004312/0.4283, allocations: 198.9 kB / 0.5034 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003915/0.4322, allocations: 2.122 MB / 0.5054 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.4322, allocations: 3.938 kB / 0.5054 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.4342, allocations: 1.122 MB / 0.5065 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/0.4366, allocations: 440 kB / 0.507 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00943/0.446, allocations: 4.998 MB / 0.5118 GB, free: 8.113 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/0.4477, allocations: 1.41 MB / 0.5132 GB, free: 6.668 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007151/0.4484, allocations: 147.4 kB / 0.5134 GB, free: 6.523 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4484, allocations: 0 / 0.5134 GB, free: 6.523 MB / 430.1 MB Notification: Performance of Templates: time 0.3308/0.7792, allocations: 83.01 MB / 0.5944 GB, free: 54.88 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.818578476086259]