Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.628/1.628, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009714/0.0009714, allocations: 95.89 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009708/0.0009708, allocations: 43.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2281, allocations: 50.47 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.009924/0.2381, allocations: 11.79 MB / 418.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00699/0.2451, allocations: 3.991 MB / 422.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002526/0.2477, allocations: 71.62 kB / 422.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002472/0.2502, allocations: 0.7769 MB / 423.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003621/0.2539, allocations: 0.8704 MB / 424.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.2552, allocations: 0.4956 MB / 425.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003723/0.2589, allocations: 3.752 MB / 428.8 MB, free: 5.992 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002733/0.2617, allocations: 2.621 MB / 431.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002018/0.2637, allocations: 1.389 MB / 432.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.2661, allocations: 1.95 MB / 434.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000621/0.2668, allocations: 264 kB / 435 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.2678, allocations: 395.8 kB / 435.4 MB, free: 15.31 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.2689, allocations: 1.083 MB / 436.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002102/0.271, allocations: 1.757 MB / 438.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005475/0.2765, allocations: 5.463 MB / 443.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.2766, allocations: 0 / 443.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2766, allocations: 0 / 443.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001779/0.2768, allocations: 0 / 443.7 MB, free: 6.98 MB / 314.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.008909/0.2857, allocations: 3.939 MB / 447.6 MB, free: 2.973 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.2858, allocations: 8.031 kB / 447.7 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001329/0.2871, allocations: 420.3 kB / 448.1 MB, free: 2.551 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004389/0.2915, allocations: 2.06 MB / 450.1 MB, free: 448 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.2917, allocations: 234.2 kB / 450.4 MB, free: 212 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005415/0.2923, allocations: 295.9 kB / 450.6 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006471/0.2988, allocations: 3.854 MB / 454.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.64e-05/0.2989, allocations: 7.891 kB / 454.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.2991, allocations: 124 kB / 454.6 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.2993, allocations: 145.7 kB / 454.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006032/0.3053, allocations: 3.255 MB / 458 MB, free: 8.445 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02164/0.327, allocations: 12.17 MB / 470.2 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/0.3295, allocations: 1.948 MB / 472.1 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.3313, allocations: 1.165 MB / 473.3 MB, free: 8.688 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003072/0.3316, allocations: 207.5 kB / 473.5 MB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.3317, allocations: 51.88 kB / 473.6 MB, free: 8.387 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 3.317e-06/0.3317, allocations: 0 / 473.6 MB, free: 8.387 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01383/0.3455, allocations: 7.009 MB / 480.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.3456, allocations: 68.72 kB / 480.6 MB, free: 1.168 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003059/0.3487, allocations: 2.028 MB / 482.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.3489, allocations: 53.69 kB / 482.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009512/0.3498, allocations: 1.46 MB / 484.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004597/0.3503, allocations: 0.5315 MB / 484.7 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005333/0.3508, allocations: 355.2 kB / 485.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.3509, allocations: 305.1 kB / 485.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.3523, allocations: 0.8784 MB / 486.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.3539, allocations: 1.446 MB / 487.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.357, allocations: 2.51 MB / 490.2 MB, free: 7.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.357, allocations: 4 kB / 490.2 MB, free: 7.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004835/0.3619, allocations: 3.01 MB / 493.2 MB, free: 3.988 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.3619, allocations: 12 kB / 493.2 MB, free: 3.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.3619, allocations: 23.94 kB / 493.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000918/0.3629, allocations: 387.5 kB / 493.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.3646, allocations: 471.2 kB / 494.1 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005905/0.3705, allocations: 6.147 MB / 0.4885 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.3724, allocations: 135.7 kB / 0.4886 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/0.3727, allocations: 83.94 kB / 0.4887 GB, free: 12.34 MB / 378.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.001788/0.3745, allocations: 0.9398 MB / 0.4896 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005806/0.3751, allocations: 209.4 kB / 0.4898 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004536/0.3796, allocations: 2.602 MB / 0.4924 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.3797, allocations: 16 kB / 0.4924 GB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.3797, allocations: 0 / 0.4924 GB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.3797, allocations: 15.95 kB / 0.4924 GB, free: 8.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01105/0.3908, allocations: 5.851 MB / 0.4981 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.3908, allocations: 4.094 kB / 0.4981 GB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.392, allocations: 299.5 kB / 0.4984 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.3931, allocations: 404 kB / 0.4988 GB, free: 1.797 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/0.3932, allocations: 39.98 kB / 0.4988 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1708/0.5641, allocations: 7.574 MB / 0.5062 GB, free: 85.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5641, allocations: 5.312 kB / 0.5062 GB, free: 85.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03246/0.5966, allocations: 26.66 MB / 0.5323 GB, free: 66.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008089/0.5974, allocations: 482.2 kB / 0.5327 GB, free: 66.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.5976, allocations: 43.92 kB / 0.5328 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.5987, allocations: 94.45 kB / 0.5328 GB, free: 66.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.5989, allocations: 118.4 kB / 0.533 GB, free: 66.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.502e-05/0.599, allocations: 47.98 kB / 0.533 GB, free: 66.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001613/0.6006, allocations: 1.386 MB / 0.5344 GB, free: 64.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6006, allocations: 0 / 0.5344 GB, free: 64.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002161/0.6028, allocations: 0.7771 MB / 0.5351 GB, free: 63.99 MB / 378.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.0003335/0.6031, allocations: 206.5 kB / 0.5353 GB, free: 63.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.6061, allocations: 2.622 MB / 0.5379 GB, free: 61.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.6061, allocations: 0 / 0.5379 GB, free: 61.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.6077, allocations: 1.58 MB / 0.5394 GB, free: 59.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002345/0.6101, allocations: 0.5188 MB / 0.5399 GB, free: 59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/0.6194, allocations: 8.924 MB / 0.5486 GB, free: 49.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.621, allocations: 2.321 MB / 0.5509 GB, free: 47.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001614/0.6226, allocations: 0.5571 MB / 0.5515 GB, free: 47.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005339/0.6231, allocations: 171.4 kB / 0.5516 GB, free: 46.88 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.6231, allocations: 3.391 kB / 0.5516 GB, free: 46.88 MB / 378.7 MB Notification: Performance of Templates: time 0.04868/0.6718, allocations: 36.34 MB / 0.5871 GB, free: 10.8 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches