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.001098/0.001098, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 62.48 kB / 307 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.0991, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01315/0.1123, allocations: 11.91 MB / 369.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1917/0.3041, allocations: 4.037 MB / 373.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002925/0.3071, allocations: 76.03 kB / 373.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.3104, allocations: 0.8831 MB / 374.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005204/0.3157, allocations: 0.9715 MB / 375.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002132/0.3178, allocations: 0.5624 MB / 375.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004757/0.3226, allocations: 3.392 MB / 379.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003771/0.3264, allocations: 3.088 MB / 382.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003307/0.3297, allocations: 1.58 MB / 384 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.3339, allocations: 2.043 MB / 386 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.335, allocations: 438.2 kB / 386.5 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001848/0.3368, allocations: 0.5439 MB / 387 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.3382, allocations: 1.261 MB / 388.3 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002535/0.3408, allocations: 1.939 MB / 390.2 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006385/0.3472, allocations: 5.605 MB / 395.8 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3472, allocations: 0.9688 kB / 395.8 MB, free: 392 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3472, allocations: 3.938 kB / 395.8 MB, free: 388 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001428/0.3474, allocations: 4 kB / 395.8 MB, free: 384 kB / 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.00989/0.3573, allocations: 3.937 MB / 399.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.3573, allocations: 10.06 kB / 399.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/0.3586, allocations: 423.1 kB / 400.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003623/0.3622, allocations: 2.067 MB / 402.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.3624, allocations: 233.3 kB / 402.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004784/0.3629, allocations: 296.8 kB / 402.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006436/0.3693, allocations: 3.848 MB / 406.6 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.107e-05/0.3694, allocations: 15.83 kB / 406.6 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000324/0.3698, allocations: 119.3 kB / 406.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.3699, allocations: 149.7 kB / 406.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005368/0.3753, allocations: 3.247 MB / 410.1 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02175/0.3971, allocations: 12.17 MB / 422.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002734/0.3998, allocations: 1.94 MB / 424.2 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.4019, allocations: 1.166 MB / 425.4 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003602/0.4023, allocations: 210.5 kB / 425.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.4024, allocations: 47.88 kB / 425.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 3.677e-06/0.4024, allocations: 4 kB / 425.7 MB, free: 4.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01513/0.4176, allocations: 7.011 MB / 432.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.4176, allocations: 68.72 kB / 432.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004474/0.4221, allocations: 2.036 MB / 434.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001783/0.4223, allocations: 53.7 kB / 434.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/0.4236, allocations: 1.455 MB / 436.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004956/0.4241, allocations: 0.5298 MB / 436.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006223/0.4248, allocations: 351.2 kB / 437.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.4249, allocations: 309.1 kB / 437.5 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4263, allocations: 0.8784 MB / 438.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001897/0.4282, allocations: 1.448 MB / 439.8 MB, free: 5.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003638/0.4319, allocations: 2.513 MB / 442.3 MB, free: 3.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.101e-05/0.4319, allocations: 4 kB / 442.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005094/0.437, allocations: 3.005 MB / 445.3 MB, free: 68 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.4371, allocations: 12 kB / 445.3 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.811e-05/0.4371, allocations: 16.5 kB / 445.3 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/0.438, allocations: 400.8 kB / 445.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/0.4397, allocations: 463.2 kB / 446.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006205/0.4459, allocations: 6.703 MB / 452.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.4478, allocations: 135.7 kB / 453 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.448, allocations: 83.98 kB / 453.1 MB, free: 7.855 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.001851/0.4498, allocations: 0.9344 MB / 454 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006273/0.4505, allocations: 217.3 kB / 454.2 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/0.4553, allocations: 2.598 MB / 456.8 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/0.4553, allocations: 19.94 kB / 456.9 MB, free: 4.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.4553, allocations: 4 kB / 456.9 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.4553, allocations: 7.969 kB / 456.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.4675, allocations: 5.859 MB / 462.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.4675, allocations: 4.094 kB / 462.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.4688, allocations: 295.5 kB / 463 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.4699, allocations: 403.6 kB / 463.4 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/0.47, allocations: 43.98 kB / 463.5 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008403/0.4784, allocations: 8.267 MB / 471.7 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.4785, allocations: 4 kB / 471.7 MB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006333/0.4848, allocations: 3.832 MB / 475.6 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.4861, allocations: 490.2 kB / 476 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00064/0.4868, allocations: 32 kB / 476.1 MB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.4882, allocations: 99.88 kB / 476.2 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.4885, allocations: 109 kB / 476.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.4887, allocations: 51.98 kB / 476.3 MB, free: 15.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002811/0.4915, allocations: 1.386 MB / 477.7 MB, free: 14.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.803e-06/0.4915, allocations: 0 / 477.7 MB, free: 14.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002926/0.4944, allocations: 0.5702 MB / 478.3 MB, free: 13.8 MB / 398.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.0005495/0.495, allocations: 206.9 kB / 478.5 MB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00656/0.5015, allocations: 3.543 MB / 482 MB, free: 9.984 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.5016, allocations: 4 kB / 482 MB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.5039, allocations: 1.572 MB / 483.6 MB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003366/0.5073, allocations: 0.5581 MB / 484.2 MB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.5175, allocations: 5.937 MB / 490.1 MB, free: 1.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/0.5197, allocations: 2.259 MB / 492.4 MB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00184/0.5216, allocations: 0.5299 MB / 492.9 MB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007208/0.5223, allocations: 163.4 kB / 493.1 MB, free: 14.83 MB / 414.1 MB Notification: Performance of SimCode: time 1.893e-06/0.5224, allocations: 0 / 493.1 MB, free: 14.83 MB / 414.1 MB Notification: Performance of Templates: time 0.06171/0.5841, allocations: 30.86 MB / 0.5116 GB, free: 272 kB / 430.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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches