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_VoltageSource.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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001958/0.001957, allocations: 200.4 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.57/1.57, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007442/0.0007444, allocations: 93.75 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002169/0.0002169, allocations: 4 kB / 360.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2012, allocations: 51.4 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.008926/0.2102, allocations: 10.54 MB / 422.6 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00691/0.2171, allocations: 4.546 MB / 427.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.219, allocations: 67.69 kB / 427.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00189/0.2209, allocations: 0.7612 MB / 428 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.2233, allocations: 0.8704 MB / 428.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.2244, allocations: 0.4917 MB / 429.3 MB, free: 8.422 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002906/0.2273, allocations: 3.703 MB / 433 MB, free: 4.703 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.2295, allocations: 2.602 MB / 435.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001448/0.231, allocations: 1.171 MB / 436.8 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001913/0.2329, allocations: 1.661 MB / 438.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003937/0.2333, allocations: 168 kB / 438.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007911/0.2341, allocations: 295.8 kB / 438.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008901/0.235, allocations: 0.9304 MB / 439.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001812/0.2369, allocations: 1.598 MB / 441.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00468/0.2416, allocations: 5.282 MB / 446.7 MB, free: 6.895 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2416, allocations: 0 / 446.7 MB, free: 6.895 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2416, allocations: 0 / 446.7 MB, free: 6.895 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001309/0.2417, allocations: 4 kB / 446.7 MB, free: 6.891 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.006481/0.2482, allocations: 3.3 MB / 450 MB, free: 3.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2483, allocations: 8.031 kB / 450 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.2495, allocations: 412.4 kB / 450.4 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/0.253, allocations: 2.072 MB / 452.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.2532, allocations: 242.2 kB / 452.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004263/0.2537, allocations: 291.9 kB / 453 MB, free: 472 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007232/0.2609, allocations: 3.827 MB / 456.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.639e-05/0.261, allocations: 8 kB / 456.9 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/0.2613, allocations: 119.9 kB / 457 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/0.2615, allocations: 153.7 kB / 457.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005722/0.2672, allocations: 3.231 MB / 460.4 MB, free: 9.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01784/0.2851, allocations: 12.22 MB / 472.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002351/0.2875, allocations: 1.94 MB / 474.5 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.2894, allocations: 1.157 MB / 475.7 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003376/0.2898, allocations: 219.5 kB / 475.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.2898, allocations: 43.88 kB / 475.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 3.807e-06/0.2898, allocations: 0 / 475.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.0129/0.3028, allocations: 7.043 MB / 483 MB, free: 1.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.3028, allocations: 76.66 kB / 483.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.3057, allocations: 2.012 MB / 485.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.3058, allocations: 53.7 kB / 485.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009264/0.3068, allocations: 1.467 MB / 486.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003902/0.3072, allocations: 0.5237 MB / 487.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.041e-05/0.3073, allocations: 40 kB / 487.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3074, allocations: 385.8 kB / 487.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.3087, allocations: 0.8706 MB / 488.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00157/0.3103, allocations: 1.446 MB / 489.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003032/0.3134, allocations: 2.498 MB / 492.4 MB, free: 7.805 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.3134, allocations: 8 kB / 492.4 MB, free: 7.797 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004629/0.318, allocations: 2.991 MB / 495.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.3181, allocations: 13.25 kB / 495.4 MB, free: 4.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.3181, allocations: 23.97 kB / 495.4 MB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008353/0.3189, allocations: 395 kB / 495.8 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.3205, allocations: 471.2 kB / 496.2 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005263/0.3258, allocations: 6.147 MB / 0.4906 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.3274, allocations: 139.8 kB / 0.4907 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.3276, allocations: 91.92 kB / 0.4908 GB, free: 13.09 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.001581/0.3292, allocations: 0.9187 MB / 0.4917 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.3295, allocations: 217.3 kB / 0.4919 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/0.3338, allocations: 2.594 MB / 0.4945 GB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.3339, allocations: 16 kB / 0.4945 GB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.3339, allocations: 8 kB / 0.4945 GB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.3339, allocations: 7.969 kB / 0.4945 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/0.3443, allocations: 5.855 MB / 0.5002 GB, free: 3.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.3443, allocations: 8.094 kB / 0.5002 GB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.3455, allocations: 291.5 kB / 0.5005 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009574/0.3465, allocations: 407 kB / 0.5009 GB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.3466, allocations: 35.98 kB / 0.5009 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1924/0.539, allocations: 7.579 MB / 0.5083 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.5391, allocations: 8.25 kB / 0.5083 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006124/0.5452, allocations: 3.828 MB / 0.5121 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.5464, allocations: 495.3 kB / 0.5125 GB, free: 82.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.5467, allocations: 36.62 kB / 0.5126 GB, free: 82.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.5478, allocations: 101.5 kB / 0.5127 GB, free: 82.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002712/0.548, allocations: 111.9 kB / 0.5128 GB, free: 82.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.79e-05/0.5481, allocations: 47.28 kB / 0.5128 GB, free: 82.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002153/0.5503, allocations: 1.37 MB / 0.5142 GB, free: 81.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5503, allocations: 0 / 0.5142 GB, free: 81.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002568/0.5529, allocations: 0.5598 MB / 0.5147 GB, free: 81.82 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.0004163/0.5533, allocations: 220.8 kB / 0.5149 GB, free: 81.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003426/0.5567, allocations: 2.624 MB / 0.5175 GB, free: 80.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5568, allocations: 3 kB / 0.5175 GB, free: 80.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.5585, allocations: 1.567 MB / 0.519 GB, free: 79.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003483/0.562, allocations: 0.5295 MB / 0.5195 GB, free: 79.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008696/0.5707, allocations: 7.341 MB / 0.5267 GB, free: 74.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001692/0.5725, allocations: 2.256 MB / 0.5289 GB, free: 72.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001848/0.5743, allocations: 0.5259 MB / 0.5294 GB, free: 71.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005186/0.5749, allocations: 163.4 kB / 0.5296 GB, free: 71.53 MB / 378.7 MB Notification: Performance of SimCode: time 2.174e-06/0.5749, allocations: 0 / 0.5296 GB, free: 71.53 MB / 378.7 MB Notification: Performance of Templates: time 0.04602/0.6209, allocations: 29.3 MB / 0.5582 GB, free: 42.56 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/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