Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009372/0.0009372, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000719/0.0007191, allocations: 96.06 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002307, allocations: 4 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2193, allocations: 51.42 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01122/0.2305, allocations: 9.165 MB / 421.2 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00772/0.2383, allocations: 3.933 MB / 425.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.24, allocations: 51.75 kB / 425.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002421/0.2424, allocations: 0.6798 MB / 425.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003117/0.2456, allocations: 0.7459 MB / 426.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.2468, allocations: 371.6 kB / 427 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003905/0.2507, allocations: 3.098 MB / 430.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003444/0.2542, allocations: 2.005 MB / 432.1 MB, free: 5.617 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.2561, allocations: 0.9723 MB / 433.1 MB, free: 4.641 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002508/0.2586, allocations: 1.326 MB / 434.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006091/0.2593, allocations: 140 kB / 434.5 MB, free: 3.172 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001241/0.2605, allocations: 255.8 kB / 434.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.2616, allocations: 0.7046 MB / 435.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.2638, allocations: 1.276 MB / 436.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00637/0.2702, allocations: 4.099 MB / 440.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.2703, allocations: 0 / 440.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2703, allocations: 0 / 440.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001679/0.2705, allocations: 0 / 440.9 MB, free: 12.81 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.00934/0.2798, allocations: 2.598 MB / 443.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.2799, allocations: 8.031 kB / 443.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001735/0.2816, allocations: 325.4 kB / 443.8 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004815/0.2865, allocations: 1.575 MB / 445.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003155/0.2868, allocations: 176.5 kB / 445.5 MB, free: 8.016 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008624/0.2877, allocations: 227.9 kB / 445.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.2978, allocations: 2.905 MB / 448.7 MB, free: 4.801 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.298, allocations: 8 kB / 448.7 MB, free: 4.793 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005374/0.2985, allocations: 95.98 kB / 448.8 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002258/0.2988, allocations: 120.3 kB / 448.9 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007936/0.3067, allocations: 2.437 MB / 451.3 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/0.3242, allocations: 9.156 MB / 460.5 MB, free: 8.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.3267, allocations: 1.724 MB / 462.2 MB, free: 6.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.3286, allocations: 1.007 MB / 463.2 MB, free: 5.832 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003128/0.3289, allocations: 199.2 kB / 463.4 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.329, allocations: 51.55 kB / 463.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 4.418e-06/0.329, allocations: 4 kB / 463.5 MB, free: 5.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01418/0.3432, allocations: 6.683 MB / 470.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3433, allocations: 64.41 kB / 470.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/0.3461, allocations: 1.557 MB / 471.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-05/0.3462, allocations: 49.7 kB / 471.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008221/0.3471, allocations: 1.112 MB / 472.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.3474, allocations: 433.8 kB / 473.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.087e-05/0.3475, allocations: 28 kB / 473.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3477, allocations: 361.9 kB / 473.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.3489, allocations: 0.7183 MB / 474.4 MB, free: 10.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.3504, allocations: 1.142 MB / 475.6 MB, free: 9.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.3532, allocations: 1.983 MB / 477.6 MB, free: 6.836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3532, allocations: 4 kB / 477.6 MB, free: 6.832 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004286/0.3575, allocations: 2.53 MB / 480.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.3575, allocations: 12 kB / 480.1 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-05/0.3576, allocations: 12.28 kB / 480.1 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.3586, allocations: 423.1 kB / 480.5 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.36, allocations: 355.5 kB / 480.9 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006758/0.3667, allocations: 6.565 MB / 487.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.3684, allocations: 111.8 kB / 487.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/0.3687, allocations: 64 kB / 487.6 MB, free: 12.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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 {(3,12,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.001445/0.3701, allocations: 0.7082 MB / 488.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.3706, allocations: 169.9 kB / 488.5 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00396/0.3745, allocations: 2.221 MB / 490.7 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.3746, allocations: 12 kB / 490.7 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.3746, allocations: 4 kB / 490.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.3746, allocations: 7.969 kB / 490.7 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008316/0.3829, allocations: 4.811 MB / 495.6 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.383, allocations: 4 kB / 495.6 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009578/0.3839, allocations: 227.7 kB / 495.8 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001152/0.3851, allocations: 455.4 kB / 496.2 MB, free: 3.508 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.3852, allocations: 39.92 kB / 496.3 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007423/0.3926, allocations: 7.975 MB / 0.4924 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.3927, allocations: 11.88 kB / 0.4924 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004887/0.3976, allocations: 3.251 MB / 0.4956 GB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008332/0.3984, allocations: 398.9 kB / 0.496 GB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/0.3988, allocations: 28 kB / 0.496 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009903/0.3998, allocations: 91.91 kB / 0.4961 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.4, allocations: 104.7 kB / 0.4962 GB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.809e-05/0.4001, allocations: 43.92 kB / 0.4962 GB, free: 6.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.402, allocations: 1.051 MB / 0.4973 GB, free: 5.883 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.245e-06/0.402, allocations: 0 / 0.4973 GB, free: 5.883 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00191/0.4039, allocations: 495.9 kB / 0.4977 GB, free: 5.398 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * 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 (107): * Single equations (assignments): 103 * 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 {(3,12,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.0004237/0.4043, allocations: 195.1 kB / 0.4979 GB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003909/0.4083, allocations: 2.321 MB / 0.5002 GB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4083, allocations: 0 / 0.5002 GB, free: 2.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002363/0.4107, allocations: 1.477 MB / 0.5016 GB, free: 1.289 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002806/0.4135, allocations: 449.8 kB / 0.5021 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1697/0.5831, allocations: 5.83 MB / 0.5078 GB, free: 87.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/0.5846, allocations: 1.872 MB / 0.5096 GB, free: 86.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001273/0.5859, allocations: 390.7 kB / 0.51 GB, free: 86.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.5863, allocations: 120.9 kB / 0.5101 GB, free: 86.73 MB / 378.7 MB Notification: Performance of SimCode: time 8.71e-07/0.5863, allocations: 1.344 kB / 0.5101 GB, free: 86.73 MB / 378.7 MB Notification: Performance of Templates: time 0.03977/0.6261, allocations: 25.01 MB / 0.5345 GB, free: 68.07 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches