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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009374/0.0009376, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.7 MB / 247.5 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002238/0.0002238, allocations: 8 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01266/0.1157, allocations: 11.22 MB / 371.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2021/0.3179, allocations: 3.949 MB / 375.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.3211, allocations: 69.22 kB / 375.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.3243, allocations: 0.7629 MB / 375.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004458/0.3288, allocations: 0.8671 MB / 376.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.3308, allocations: 0.4933 MB / 377.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005581/0.3364, allocations: 3.708 MB / 381 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005025/0.3414, allocations: 2.589 MB / 383.6 MB, free: 7.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003278/0.3447, allocations: 1.162 MB / 384.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004665/0.3494, allocations: 1.672 MB / 386.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001556/0.351, allocations: 168.9 kB / 386.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002632/0.3537, allocations: 303 kB / 386.9 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002521/0.3562, allocations: 0.9422 MB / 387.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005425/0.3617, allocations: 1.596 MB / 389.4 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006803/0.3685, allocations: 4.547 MB / 394 MB, free: 2.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3686, allocations: 0 / 394 MB, free: 2.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3686, allocations: 0 / 394 MB, free: 2.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002483/0.3688, allocations: 1.156 kB / 394 MB, free: 2.391 MB / 302.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.01059/0.3794, allocations: 3.31 MB / 397.3 MB, free: 164 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3795, allocations: 10.22 kB / 397.3 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002509/0.382, allocations: 418.8 kB / 397.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006/0.388, allocations: 2.072 MB / 399.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003303/0.3884, allocations: 233.1 kB / 400 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.3897, allocations: 299.7 kB / 400.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01137/0.4011, allocations: 3.856 MB / 404.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001589/0.4013, allocations: 7.984 kB / 404.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001024/0.4024, allocations: 127.9 kB / 404.3 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002109/0.4026, allocations: 145.7 kB / 404.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008005/0.4106, allocations: 3.255 MB / 407.7 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02723/0.4379, allocations: 12.21 MB / 419.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00319/0.4411, allocations: 1.948 MB / 421.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002272/0.4434, allocations: 1.171 MB / 423 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003641/0.4438, allocations: 213.8 kB / 423.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.4439, allocations: 51.88 kB / 423.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.818e-06/0.4439, allocations: 0 / 423.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01616/0.4601, allocations: 7.06 MB / 430.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.4602, allocations: 68.72 kB / 430.4 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00419/0.4644, allocations: 2.036 MB / 432.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003134/0.4647, allocations: 53.7 kB / 432.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.4659, allocations: 1.465 MB / 433.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008652/0.4668, allocations: 0.5268 MB / 434.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003776/0.4672, allocations: 153.6 kB / 434.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4673, allocations: 309.1 kB / 434.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4691, allocations: 0.8784 MB / 435.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.4712, allocations: 1.454 MB / 437.2 MB, free: 9.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003892/0.4751, allocations: 2.512 MB / 439.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.23e-05/0.4751, allocations: 4 kB / 439.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006559/0.4817, allocations: 3.01 MB / 442.8 MB, free: 3.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.4818, allocations: 16 kB / 442.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.25e-05/0.4818, allocations: 16 kB / 442.8 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009494/0.4828, allocations: 398.2 kB / 443.2 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001774/0.4846, allocations: 471.2 kB / 443.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006341/0.4909, allocations: 6.145 MB / 449.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002626/0.4936, allocations: 147.5 kB / 449.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004779/0.4941, allocations: 83.98 kB / 450 MB, free: 12.15 MB / 366.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.003507/0.4976, allocations: 0.9382 MB / 451 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/0.4988, allocations: 217.4 kB / 451.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005695/0.5045, allocations: 2.598 MB / 453.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.5045, allocations: 16 kB / 453.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/0.5045, allocations: 4 kB / 453.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-05/0.5046, allocations: 7.969 kB / 453.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.5168, allocations: 5.861 MB / 459.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.5169, allocations: 4 kB / 459.7 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.5183, allocations: 296 kB / 460 MB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.5196, allocations: 405.3 kB / 460.4 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001736/0.5198, allocations: 43.98 kB / 460.4 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008241/0.528, allocations: 7.594 MB / 468 MB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/0.5281, allocations: 7.938 kB / 468 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007007/0.5351, allocations: 3.847 MB / 471.8 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/0.5366, allocations: 494.1 kB / 472.3 MB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008013/0.5374, allocations: 39.98 kB / 472.4 MB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.5391, allocations: 95.89 kB / 472.5 MB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.5395, allocations: 113.1 kB / 472.6 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5396, allocations: 55.92 kB / 472.6 MB, free: 4.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003203/0.5428, allocations: 1.386 MB / 474 MB, free: 3.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5428, allocations: 0 / 474 MB, free: 3.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003196/0.546, allocations: 0.5586 MB / 474.6 MB, free: 2.742 MB / 382.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.0005957/0.5466, allocations: 209.1 kB / 474.8 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00488/0.5515, allocations: 2.637 MB / 477.4 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.5516, allocations: 0 / 477.4 MB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002619/0.5542, allocations: 1.569 MB / 479 MB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005495/0.5597, allocations: 0.5212 MB / 479.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.5739, allocations: 7.404 MB / 486.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00322/0.5772, allocations: 2.224 MB / 489.1 MB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/0.5783, allocations: 175.4 kB / 489.3 MB, free: 3.793 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5783, allocations: 0 / 489.3 MB, free: 3.793 MB / 398.1 MB Notification: Performance of Templates: time 0.3129/0.8912, allocations: 94.26 MB / 0.5699 GB, free: 120.7 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches