Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 107.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009198/0.0009198, allocations: 35.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2382, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.009916/0.2482, allocations: 11.78 MB / 411.3 MB, free: 21.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006572/0.2548, allocations: 3.942 MB / 415.2 MB, free: 17.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2566, allocations: 71.69 kB / 415.3 MB, free: 17.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.2584, allocations: 0.7651 MB / 416 MB, free: 16.76 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.2605, allocations: 0.8587 MB / 416.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008941/0.2614, allocations: 0.4995 MB / 417.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002647/0.264, allocations: 3.746 MB / 421.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002217/0.2663, allocations: 2.629 MB / 423.8 MB, free: 8.945 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001503/0.2678, allocations: 1.397 MB / 425.2 MB, free: 7.543 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001655/0.2694, allocations: 1.946 MB / 427.1 MB, free: 5.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003732/0.2698, allocations: 264 kB / 427.4 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007089/0.2706, allocations: 387.7 kB / 427.7 MB, free: 4.953 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007618/0.2713, allocations: 1.083 MB / 428.8 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.2731, allocations: 1.753 MB / 430.6 MB, free: 2.105 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004549/0.2776, allocations: 5.459 MB / 436 MB, free: 12.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.2776, allocations: 4 kB / 436 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2776, allocations: 0 / 436 MB, free: 12.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001569/0.2778, allocations: 0 / 436 MB, free: 12.62 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.008033/0.2859, allocations: 3.927 MB / 440 MB, free: 8.629 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.2859, allocations: 15.97 kB / 440 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009008/0.2868, allocations: 404.4 kB / 440.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003435/0.2903, allocations: 2.06 MB / 442.4 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.2905, allocations: 246.2 kB / 442.7 MB, free: 5.859 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/0.2909, allocations: 291.9 kB / 443 MB, free: 5.574 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005901/0.2968, allocations: 3.858 MB / 446.8 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.46e-05/0.2968, allocations: 7.984 kB / 446.8 MB, free: 1.629 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.2971, allocations: 120 kB / 447 MB, free: 1.512 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.2973, allocations: 145.7 kB / 447.1 MB, free: 1.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005038/0.3023, allocations: 3.255 MB / 450.4 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01864/0.321, allocations: 12.16 MB / 462.5 MB, free: 1.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.3233, allocations: 1.933 MB / 464.4 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.3251, allocations: 1.168 MB / 465.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003094/0.3254, allocations: 211.5 kB / 465.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3255, allocations: 51.81 kB / 465.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 3.686e-06/0.3255, allocations: 0.5469 kB / 465.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01305/0.3385, allocations: 7 MB / 472.9 MB, free: 6.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.3386, allocations: 68.72 kB / 472.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003001/0.3416, allocations: 2.032 MB / 475 MB, free: 4.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3417, allocations: 53.7 kB / 475 MB, free: 4.711 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009746/0.3427, allocations: 1.456 MB / 476.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004167/0.3431, allocations: 0.5315 MB / 477 MB, free: 2.699 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005263/0.3437, allocations: 351.2 kB / 477.3 MB, free: 2.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.58e-05/0.3438, allocations: 309.1 kB / 477.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.3451, allocations: 0.8784 MB / 478.5 MB, free: 1.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.3468, allocations: 1.45 MB / 480 MB, free: 15.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003134/0.3499, allocations: 2.502 MB / 482.5 MB, free: 12.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/0.3499, allocations: 4 kB / 482.5 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004798/0.3547, allocations: 3.014 MB / 485.5 MB, free: 9.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.3548, allocations: 15.98 kB / 485.5 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.3548, allocations: 20.44 kB / 485.5 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008642/0.3557, allocations: 387.1 kB / 485.9 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.3572, allocations: 471.2 kB / 486.4 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005586/0.3628, allocations: 6.14 MB / 492.5 MB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001899/0.3648, allocations: 135.8 kB / 492.6 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/0.3649, allocations: 83.94 kB / 492.7 MB, free: 2.016 MB / 362.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.002029/0.367, allocations: 0.9383 MB / 493.7 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/0.3676, allocations: 217.3 kB / 493.9 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/0.3719, allocations: 2.602 MB / 496.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/0.3719, allocations: 19.98 kB / 496.5 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3719, allocations: 4 kB / 496.5 MB, free: 14.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.3719, allocations: 7.969 kB / 496.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009448/0.3814, allocations: 5.855 MB / 0.4906 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.3814, allocations: 7.984 kB / 0.4906 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.3826, allocations: 287.6 kB / 0.4909 GB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.3837, allocations: 403.5 kB / 0.4913 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.3838, allocations: 44.08 kB / 0.4913 GB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2064/0.5902, allocations: 7.585 MB / 0.4987 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.5902, allocations: 4.375 kB / 0.4987 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03443/0.6247, allocations: 26.66 MB / 0.5247 GB, free: 76.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008225/0.6255, allocations: 492.2 kB / 0.5252 GB, free: 75.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.6258, allocations: 36 kB / 0.5252 GB, free: 75.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.6268, allocations: 95.88 kB / 0.5253 GB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.6271, allocations: 108.7 kB / 0.5254 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.432e-05/0.6272, allocations: 51.92 kB / 0.5255 GB, free: 75.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001683/0.6289, allocations: 1.385 MB / 0.5268 GB, free: 74.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6289, allocations: 0 / 0.5268 GB, free: 74.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002537/0.6314, allocations: 0.7812 MB / 0.5276 GB, free: 73.25 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.0003869/0.6318, allocations: 204.2 kB / 0.5278 GB, free: 73.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003097/0.6349, allocations: 2.627 MB / 0.5304 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.6349, allocations: 0 / 0.5304 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.6366, allocations: 1.572 MB / 0.5319 GB, free: 68.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.6389, allocations: 0.5309 MB / 0.5324 GB, free: 68.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.6495, allocations: 8.931 MB / 0.5411 GB, free: 59.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/0.6512, allocations: 2.318 MB / 0.5434 GB, free: 56.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001799/0.6531, allocations: 0.5532 MB / 0.5439 GB, free: 56.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005233/0.6536, allocations: 175.4 kB / 0.5441 GB, free: 56.17 MB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6536, allocations: 0 / 0.5441 GB, free: 56.17 MB / 378.7 MB Notification: Performance of Templates: time 0.04934/0.7029, allocations: 36.28 MB / 0.5795 GB, free: 20.2 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches