Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 210 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 48.06 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2485, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01318/0.2617, allocations: 9.664 MB / 442 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007872/0.2696, allocations: 3.466 MB / 445.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002064/0.2716, allocations: 87.44 kB / 445.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002355/0.274, allocations: 0.8031 MB / 446.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.2773, allocations: 0.9204 MB / 447.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.2786, allocations: 471.3 kB / 447.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004372/0.283, allocations: 2.946 MB / 450.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.2854, allocations: 1.509 MB / 452.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002414/0.2878, allocations: 1.417 MB / 453.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002933/0.2908, allocations: 1.685 MB / 455.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006442/0.2914, allocations: 372 kB / 455.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.2925, allocations: 479.8 kB / 456.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.2937, allocations: 1.095 MB / 457.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.2955, allocations: 1.346 MB / 458.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006337/0.3018, allocations: 4.939 MB / 463.5 MB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3018, allocations: 0 / 463.5 MB, free: 7.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3018, allocations: 0 / 463.5 MB, free: 7.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001409/0.302, allocations: 4 kB / 463.5 MB, free: 7.375 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.008148/0.3101, allocations: 3.405 MB / 466.9 MB, free: 3.918 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/0.3102, allocations: 8.031 kB / 466.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.3112, allocations: 362.8 kB / 467.3 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.3151, allocations: 1.76 MB / 469 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001782/0.3153, allocations: 193.4 kB / 469.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003939/0.3157, allocations: 251.9 kB / 469.5 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005985/0.3216, allocations: 3.362 MB / 472.8 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.726e-05/0.3217, allocations: 15.89 kB / 472.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.322, allocations: 100 kB / 473 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001733/0.3221, allocations: 124.9 kB / 473.1 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004707/0.3268, allocations: 2.74 MB / 475.8 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01549/0.3423, allocations: 9.028 MB / 484.8 MB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.3442, allocations: 1.067 MB / 485.9 MB, free: 424 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.3454, allocations: 0.7101 MB / 486.6 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002384/0.3456, allocations: 48.97 kB / 486.7 MB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.3457, allocations: 47.56 kB / 486.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.986e-06/0.3457, allocations: 0 / 486.7 MB, free: 15.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01549/0.3612, allocations: 6.633 MB / 493.3 MB, free: 8.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.3612, allocations: 64.41 kB / 493.4 MB, free: 8.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/0.3639, allocations: 1.645 MB / 495.1 MB, free: 7.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.364, allocations: 49.7 kB / 495.1 MB, free: 7.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.3651, allocations: 1.325 MB / 496.4 MB, free: 5.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004003/0.3655, allocations: 444.2 kB / 496.9 MB, free: 5.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004855/0.366, allocations: 299.4 kB / 497.2 MB, free: 5.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3661, allocations: 309.1 kB / 497.5 MB, free: 4.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.3673, allocations: 0.773 MB / 498.2 MB, free: 3.996 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.369, allocations: 1.292 MB / 499.5 MB, free: 2.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.3721, allocations: 2.21 MB / 0.49 GB, free: 40 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.3721, allocations: 8 kB / 0.49 GB, free: 32 kB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00437/0.3765, allocations: 2.459 MB / 0.4924 GB, free: 13.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.3765, allocations: 12.81 kB / 0.4924 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.3765, allocations: 20 kB / 0.4924 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007177/0.3772, allocations: 243.2 kB / 0.4926 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.3788, allocations: 419.3 kB / 0.493 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.3818, allocations: 2.977 MB / 0.4959 GB, free: 9.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.3835, allocations: 131.8 kB / 0.4961 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/0.3836, allocations: 76.05 kB / 0.4961 GB, free: 9.473 MB / 414.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.001693/0.3853, allocations: 0.8211 MB / 0.497 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004975/0.3858, allocations: 182.8 kB / 0.4971 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003625/0.3895, allocations: 2.026 MB / 0.4991 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.3895, allocations: 16 kB / 0.4991 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3895, allocations: 0 / 0.4991 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.3895, allocations: 7.969 kB / 0.4991 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008046/0.3975, allocations: 4.122 MB / 0.5032 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.3975, allocations: 4 kB / 0.5032 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.3987, allocations: 259.6 kB / 0.5034 GB, free: 1.918 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000583/0.3992, allocations: 203.2 kB / 0.5036 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.607e-05/0.3993, allocations: 27.94 kB / 0.5036 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00283/0.4022, allocations: 2.954 MB / 0.5065 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.4022, allocations: 4 kB / 0.5065 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.4072, allocations: 3.128 MB / 0.5096 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.4085, allocations: 338.8 kB / 0.5099 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.4088, allocations: 28 kB / 0.5099 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009388/0.4097, allocations: 95.86 kB / 0.51 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.4099, allocations: 84.72 kB / 0.5101 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-05/0.41, allocations: 32 kB / 0.5101 GB, free: 10.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001839/0.4118, allocations: 1.106 MB / 0.5112 GB, free: 9.664 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4118, allocations: 0 / 0.5112 GB, free: 9.664 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4135, allocations: 483.9 kB / 0.5117 GB, free: 9.191 MB / 430.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.0004167/0.4139, allocations: 194.9 kB / 0.5118 GB, free: 8.992 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003771/0.4177, allocations: 2.121 MB / 0.5139 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4177, allocations: 0 / 0.5139 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.4196, allocations: 1.118 MB / 0.515 GB, free: 5.688 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002259/0.4218, allocations: 452.9 kB / 0.5154 GB, free: 5.254 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008757/0.4306, allocations: 5.002 MB / 0.5203 GB, free: 188 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001703/0.4323, allocations: 1.404 MB / 0.5217 GB, free: 14.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000721/0.433, allocations: 139.4 kB / 0.5218 GB, free: 14.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.433, allocations: 8 kB / 0.5218 GB, free: 14.6 MB / 446.1 MB Notification: Performance of Templates: time 0.3262/0.7592, allocations: 83.13 MB / 0.603 GB, free: 42.36 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.429801521357149]