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) 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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 111.6 kB / 17.06 MB, free: 6.016 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.001251/0.001252, allocations: 195.9 kB / 18 MB, free: 5.098 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009529/0.0009529, allocations: 43.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2462, allocations: 49.42 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01335/0.2596, allocations: 11.9 MB / 412.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007129/0.2668, allocations: 3.995 MB / 416.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.2682, allocations: 79.62 kB / 416.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.2702, allocations: 0.9313 MB / 417.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002582/0.2728, allocations: 1.01 MB / 418.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.274, allocations: 0.5578 MB / 419.2 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003167/0.2771, allocations: 3.411 MB / 422.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003221/0.2804, allocations: 3.081 MB / 425.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001776/0.2821, allocations: 1.585 MB / 427.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002261/0.2844, allocations: 2.047 MB / 429.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005325/0.285, allocations: 436 kB / 429.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008758/0.2859, allocations: 0.5311 MB / 430.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.287, allocations: 1.258 MB / 431.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.2888, allocations: 1.944 MB / 433.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004965/0.2938, allocations: 5.677 MB / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2938, allocations: 0 / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2938, allocations: 0 / 439.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.322e-05/0.2939, allocations: 0 / 439.2 MB, free: 2.258 MB / 350.1 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.00786/0.3018, allocations: 3.947 MB / 443.1 MB, free: 14.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3019, allocations: 12.03 kB / 443.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.3029, allocations: 400.4 kB / 443.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003424/0.3063, allocations: 2.13 MB / 445.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.3065, allocations: 222.2 kB / 445.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004231/0.3069, allocations: 299.8 kB / 446.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006436/0.3134, allocations: 3.854 MB / 450 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.068e-05/0.3135, allocations: 7.844 kB / 450 MB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002721/0.3137, allocations: 124 kB / 450.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.3139, allocations: 157.7 kB / 450.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005373/0.3193, allocations: 3.255 MB / 453.5 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.3377, allocations: 12.02 MB / 465.6 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.3402, allocations: 1.94 MB / 467.5 MB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.3421, allocations: 1.141 MB / 468.6 MB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/0.3424, allocations: 211.5 kB / 468.9 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.528e-05/0.3424, allocations: 51.88 kB / 468.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.166e-06/0.3424, allocations: 0 / 468.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01465/0.3571, allocations: 7.013 MB / 475.9 MB, free: 12.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.3572, allocations: 64.72 kB / 476 MB, free: 12.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.3607, allocations: 2.032 MB / 478 MB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.3609, allocations: 49.7 kB / 478.1 MB, free: 10.42 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.3621, allocations: 1.452 MB / 479.5 MB, free: 8.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004875/0.3626, allocations: 0.5392 MB / 480.1 MB, free: 8.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005491/0.3631, allocations: 351.3 kB / 480.4 MB, free: 8.055 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3633, allocations: 305.1 kB / 480.7 MB, free: 7.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.3646, allocations: 0.8862 MB / 481.6 MB, free: 6.867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/0.3665, allocations: 1.442 MB / 483 MB, free: 5.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/0.3699, allocations: 2.51 MB / 485.5 MB, free: 2.414 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.3699, allocations: 4 kB / 485.5 MB, free: 2.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005485/0.3754, allocations: 3.01 MB / 488.5 MB, free: 15.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.3755, allocations: 16.03 kB / 488.6 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/0.3755, allocations: 20 kB / 488.6 MB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009571/0.3765, allocations: 391 kB / 489 MB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.3782, allocations: 475.2 kB / 489.4 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007979/0.3862, allocations: 6.701 MB / 496.1 MB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002428/0.3886, allocations: 135.8 kB / 496.3 MB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.3888, allocations: 80 kB / 496.3 MB, free: 7.137 MB / 414.1 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.002653/0.3915, allocations: 0.9383 MB / 497.3 MB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006859/0.3922, allocations: 213.3 kB / 497.5 MB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004556/0.3967, allocations: 2.594 MB / 0.4884 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.3967, allocations: 12 kB / 0.4884 GB, free: 3.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3968, allocations: 7.984 kB / 0.4884 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.3968, allocations: 7.984 kB / 0.4884 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.4076, allocations: 5.83 MB / 0.4941 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.4076, allocations: 8.078 kB / 0.4941 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.4088, allocations: 295.5 kB / 0.4944 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.4099, allocations: 399.1 kB / 0.4947 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.41, allocations: 39.98 kB / 0.4948 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007997/0.418, allocations: 8.264 MB / 0.5029 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.418, allocations: 4 kB / 0.5029 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006553/0.4246, allocations: 3.834 MB / 0.5066 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.4257, allocations: 490.2 kB / 0.5071 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002829/0.426, allocations: 32 kB / 0.5071 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.4271, allocations: 99.83 kB / 0.5072 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.4274, allocations: 113.1 kB / 0.5073 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-05/0.4275, allocations: 51.92 kB / 0.5074 GB, free: 15.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002134/0.4296, allocations: 1.39 MB / 0.5087 GB, free: 13.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4296, allocations: 0 / 0.5087 GB, free: 13.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002056/0.4317, allocations: 0.5625 MB / 0.5093 GB, free: 13.06 MB / 446.1 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.0004238/0.4321, allocations: 213.1 kB / 0.5095 GB, free: 12.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004105/0.4362, allocations: 2.64 MB / 0.512 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.4362, allocations: 0 / 0.512 GB, free: 10.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002398/0.4387, allocations: 1.57 MB / 0.5136 GB, free: 8.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00245/0.4411, allocations: 0.5466 MB / 0.5141 GB, free: 7.988 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009492/0.4506, allocations: 5.866 MB / 0.5198 GB, free: 2.039 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002437/0.4531, allocations: 2.259 MB / 0.522 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001538/0.4546, allocations: 0.522 MB / 0.5226 GB, free: 15.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004628/0.4551, allocations: 163.4 kB / 0.5227 GB, free: 15.07 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4551, allocations: 0 / 0.5227 GB, free: 15.07 MB / 462.1 MB Notification: Performance of Templates: time 0.2576/0.7127, allocations: 31.43 MB / 0.5534 GB, free: 123.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (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) 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) Reference file matches