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.001333/0.001333, allocations: 111 kB / 21.19 MB, free: 0.6758 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.001428/0.001428, allocations: 215.5 kB / 24.48 MB, free: 3.98 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.416/1.416, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.001525/0.001525, allocations: 48.06 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.243, allocations: 53.36 MB / 432.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01673/0.2598, allocations: 9.646 MB / 442 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009873/0.2696, allocations: 3.482 MB / 445.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.2716, allocations: 87.44 kB / 445.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002999/0.2746, allocations: 0.8073 MB / 446.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003901/0.2785, allocations: 0.9204 MB / 447.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001613/0.2801, allocations: 463.3 kB / 447.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005431/0.2856, allocations: 2.954 MB / 450.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003418/0.289, allocations: 1.567 MB / 452.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.2919, allocations: 1.421 MB / 453.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.2955, allocations: 1.802 MB / 455.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007421/0.2962, allocations: 372 kB / 455.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.2976, allocations: 483.8 kB / 456.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001676/0.2993, allocations: 1.095 MB / 457.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002325/0.3016, allocations: 1.346 MB / 458.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007937/0.3095, allocations: 4.939 MB / 463.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3096, allocations: 0 / 463.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3096, allocations: 0 / 463.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001147/0.3097, allocations: 0 / 463.7 MB, free: 7.184 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.01056/0.3202, allocations: 3.405 MB / 467.1 MB, free: 3.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3203, allocations: 8.031 kB / 467.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.3219, allocations: 362.8 kB / 467.5 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/0.3271, allocations: 1.76 MB / 469.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.3274, allocations: 185.4 kB / 469.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006415/0.328, allocations: 263.8 kB / 469.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00892/0.337, allocations: 3.355 MB / 473 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.99e-05/0.3371, allocations: 11.94 kB / 473 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003894/0.3375, allocations: 100 kB / 473.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002238/0.3377, allocations: 120.9 kB / 473.2 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007148/0.3448, allocations: 2.744 MB / 476 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02339/0.3682, allocations: 9.028 MB / 485 MB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.3708, allocations: 1.063 MB / 486.1 MB, free: 240 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.3727, allocations: 0.7224 MB / 486.8 MB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.373, allocations: 44.97 kB / 486.8 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.681e-05/0.3731, allocations: 47.5 kB / 486.9 MB, free: 15.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.108e-06/0.3731, allocations: 0 / 486.9 MB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01538/0.3884, allocations: 6.621 MB / 493.5 MB, free: 8.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.3885, allocations: 72.34 kB / 493.6 MB, free: 8.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.3908, allocations: 1.637 MB / 495.2 MB, free: 7.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.076e-05/0.3909, allocations: 45.7 kB / 495.3 MB, free: 6.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.392, allocations: 1.332 MB / 496.6 MB, free: 5.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/0.3924, allocations: 444.2 kB / 497 MB, free: 5.195 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005/0.3929, allocations: 299.4 kB / 497.3 MB, free: 4.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.393, allocations: 305.1 kB / 497.6 MB, free: 4.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.3943, allocations: 0.7768 MB / 498.4 MB, free: 3.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.3959, allocations: 1.292 MB / 499.7 MB, free: 2.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.3991, allocations: 2.206 MB / 0.4901 GB, free: 15.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3991, allocations: 7.938 kB / 0.4901 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004221/0.4033, allocations: 2.464 MB / 0.4925 GB, free: 13.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.4034, allocations: 15 kB / 0.4926 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.4034, allocations: 20 kB / 0.4926 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006757/0.4041, allocations: 243.2 kB / 0.4928 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.4056, allocations: 415.3 kB / 0.4932 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/0.4087, allocations: 2.993 MB / 0.4961 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.4101, allocations: 139.8 kB / 0.4963 GB, free: 9.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.4102, allocations: 68 kB / 0.4963 GB, free: 9.281 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.001384/0.4116, allocations: 0.8247 MB / 0.4971 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003076/0.4119, allocations: 178.8 kB / 0.4973 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.4155, allocations: 2.03 MB / 0.4993 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.4156, allocations: 12 kB / 0.4993 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4156, allocations: 0 / 0.4993 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.4156, allocations: 3.984 kB / 0.4993 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007599/0.4232, allocations: 4.118 MB / 0.5033 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4232, allocations: 4 kB / 0.5033 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.4244, allocations: 263.6 kB / 0.5036 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005779/0.4249, allocations: 195.3 kB / 0.5038 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.113e-05/0.425, allocations: 24 kB / 0.5038 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.4278, allocations: 2.97 MB / 0.5067 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.4278, allocations: 0 / 0.5067 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004793/0.4326, allocations: 3.128 MB / 0.5097 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009791/0.4336, allocations: 334.7 kB / 0.5101 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002239/0.4338, allocations: 24 kB / 0.5101 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009326/0.4347, allocations: 91.88 kB / 0.5102 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.4349, allocations: 96.83 kB / 0.5103 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.344e-05/0.435, allocations: 32 kB / 0.5103 GB, free: 10.58 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001729/0.4367, allocations: 1.099 MB / 0.5114 GB, free: 9.488 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4367, allocations: 3.938 kB / 0.5114 GB, free: 9.484 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001535/0.4383, allocations: 491.9 kB / 0.5118 GB, free: 9.004 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.0003885/0.4387, allocations: 186.9 kB / 0.512 GB, free: 8.812 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00363/0.4423, allocations: 2.121 MB / 0.5141 GB, free: 6.664 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.4423, allocations: 4 kB / 0.5141 GB, free: 6.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.4441, allocations: 1.119 MB / 0.5152 GB, free: 5.508 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002037/0.4462, allocations: 441.2 kB / 0.5156 GB, free: 5.082 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008086/0.4542, allocations: 4.953 MB / 0.5204 GB, free: 64 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001716/0.456, allocations: 1.441 MB / 0.5219 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.4573, allocations: 486.8 kB / 0.5223 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004308/0.4578, allocations: 135.4 kB / 0.5224 GB, free: 13.97 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4578, allocations: 3.938 kB / 0.5225 GB, free: 13.97 MB / 446.1 MB Notification: Performance of Templates: time 0.22/0.6778, allocations: 28.61 MB / 0.5504 GB, free: 96.16 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 -s gbode -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: 5.640329055997427]