Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.001913/0.001913, allocations: 92.62 kB / 20.95 MB, free: 3.441 MB / 18.57 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.002139/0.002139, allocations: 153.5 kB / 24.25 MB, free: 148 kB / 18.57 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.516/1.516, allocations: 173.4 MB / 200.8 MB, free: 9.285 MB / 186.7 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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 267.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.457e-05/3.671e-05, allocations: 2.312 kB / 267.3 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01547/0.01551, allocations: 10.47 MB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009002/0.02451, allocations: 3.789 MB / 281.6 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002427/0.02694, allocations: 95.31 kB / 281.7 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.03018, allocations: 0.8846 MB / 282.6 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.03502, allocations: 1.059 MB / 283.6 MB, free: 6.305 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.03673, allocations: 0.5654 MB / 284.2 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00585/0.04258, allocations: 3.514 MB / 287.7 MB, free: 2.211 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003187/0.04576, allocations: 1.742 MB / 289.5 MB, free: 416 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1483/0.1941, allocations: 2.364 MB / 291.8 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00481/0.1989, allocations: 1.763 MB / 293.6 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002177/0.201, allocations: 435.1 kB / 294 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0033/0.2043, allocations: 0.5318 MB / 294.5 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002163/0.2065, allocations: 1.312 MB / 295.9 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003341/0.2098, allocations: 1.309 MB / 297.2 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008459/0.2183, allocations: 5.77 MB / 302.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2183, allocations: 4 kB / 302.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2183, allocations: 1.969 kB / 302.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000198/0.2185, allocations: 0 / 302.9 MB, free: 15.65 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.009256/0.2278, allocations: 3.92 MB / 306.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.2278, allocations: 10.39 kB / 306.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.2294, allocations: 0.6521 MB / 307.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004128/0.2335, allocations: 2.142 MB / 309.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.2336, allocations: 217.6 kB / 309.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004825/0.2341, allocations: 299.7 kB / 310.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007816/0.2419, allocations: 3.921 MB / 314.1 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.242, allocations: 18.64 kB / 314.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003348/0.2424, allocations: 125.7 kB / 314.2 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.2425, allocations: 153.2 kB / 314.4 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006395/0.2489, allocations: 3.241 MB / 317.6 MB, free: 5.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02072/0.2696, allocations: 10.68 MB / 328.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.2725, allocations: 1.383 MB / 329.7 MB, free: 9.289 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002251/0.2748, allocations: 1.081 MB / 330.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002741/0.2751, allocations: 61.27 kB / 330.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.2751, allocations: 51.34 kB / 330.9 MB, free: 8.098 MB / 282.7 MB Notification: Performance of pre-optimization done (n=139): time 3.307e-06/0.2751, allocations: 4 kB / 330.9 MB, free: 8.094 MB / 282.7 MB Notification: Performance of matching and sorting (n=155): time 0.01713/0.2922, allocations: 6.645 MB / 337.5 MB, free: 1.465 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.2923, allocations: 68.72 kB / 337.6 MB, free: 1.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003628/0.2959, allocations: 1.89 MB / 339.5 MB, free: 15.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002344/0.2962, allocations: 49.7 kB / 339.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.2977, allocations: 1.499 MB / 341 MB, free: 13.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006689/0.2984, allocations: 0.5467 MB / 341.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006717/0.2991, allocations: 351.4 kB / 341.9 MB, free: 13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.2992, allocations: 301.1 kB / 342.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/0.3009, allocations: 0.8823 MB / 343.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002262/0.3032, allocations: 1.446 MB / 344.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004246/0.3074, allocations: 2.502 MB / 347 MB, free: 7.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/0.3074, allocations: 8 kB / 347 MB, free: 7.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006572/0.314, allocations: 3.018 MB / 350.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.3141, allocations: 12 kB / 350.1 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.746e-05/0.3141, allocations: 20.5 kB / 350.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.3153, allocations: 429.4 kB / 350.5 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001917/0.3173, allocations: 467.7 kB / 351 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007914/0.3252, allocations: 6.304 MB / 357.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.3273, allocations: 135.8 kB / 357.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003072/0.3276, allocations: 83.94 kB / 357.5 MB, free: 12.86 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002162/0.3297, allocations: 0.9316 MB / 358.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008332/0.3306, allocations: 262.6 kB / 358.7 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/0.3359, allocations: 2.512 MB / 361.2 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/0.3359, allocations: 16.61 kB / 361.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3359, allocations: 0 / 361.2 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.3359, allocations: 11.97 kB / 361.2 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.3478, allocations: 5.016 MB / 366.2 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.3478, allocations: 7.984 kB / 366.2 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.3492, allocations: 294.5 kB / 366.5 MB, free: 3.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.3505, allocations: 427.7 kB / 366.9 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.3507, allocations: 39.45 kB / 367 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009669/0.3604, allocations: 7.729 MB / 374.7 MB, free: 11.26 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.3604, allocations: 4 kB / 374.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008894/0.3693, allocations: 3.803 MB / 378.5 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001654/0.3709, allocations: 402.4 kB / 378.9 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000368/0.3713, allocations: 36 kB / 379 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.3724, allocations: 95.89 kB / 379 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.3727, allocations: 119.9 kB / 379.2 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.3728, allocations: 51.98 kB / 379.2 MB, free: 6.699 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002336/0.3752, allocations: 1.261 MB / 380.5 MB, free: 5.414 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3752, allocations: 0 / 380.5 MB, free: 5.414 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002397/0.3776, allocations: 0.5624 MB / 381 MB, free: 4.852 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.0004729/0.378, allocations: 208.6 kB / 381.2 MB, free: 4.656 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004604/0.3826, allocations: 2.477 MB / 383.7 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.3827, allocations: 0 / 383.7 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.3854, allocations: 1.509 MB / 385.2 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00288/0.3883, allocations: 0.5329 MB / 385.8 MB, free: 176 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.4002, allocations: 5.916 MB / 391.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002582/0.4028, allocations: 1.693 MB / 393.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001838/0.4047, allocations: 0.5132 MB / 393.9 MB, free: 7.918 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005571/0.4052, allocations: 156.5 kB / 394 MB, free: 7.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4052, allocations: 0 / 394 MB, free: 7.766 MB / 346.7 MB Notification: Performance of Templates: time 0.05987/0.4651, allocations: 30.3 MB / 424.3 MB, free: 9.918 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.962922323989915]