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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 110.4 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.981/1.981, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 42.16 kB / 300.6 MB, free: 6.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1875, allocations: 49.45 MB / 350.1 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.02751/0.2151, allocations: 11.79 MB / 361.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.2312, allocations: 3.929 MB / 365.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004782/0.2361, allocations: 75.62 kB / 365.9 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005782/0.2419, allocations: 0.7613 MB / 366.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007657/0.2497, allocations: 0.8704 MB / 367.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003569/0.2534, allocations: 0.4916 MB / 368 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.4318/0.6852, allocations: 3.696 MB / 371.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00824/0.6936, allocations: 2.632 MB / 374.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005738/0.6993, allocations: 1.382 MB / 375.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00781/0.7072, allocations: 1.952 MB / 377.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003199/0.7105, allocations: 262.8 kB / 377.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004282/0.7148, allocations: 388.6 kB / 378.3 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004202/0.7191, allocations: 1.08 MB / 379.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008097/0.7272, allocations: 1.756 MB / 381.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.739, allocations: 4.663 MB / 385.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.166e-05/0.739, allocations: 0 / 385.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.739, allocations: 0 / 385.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003189/0.7394, allocations: 1.344 kB / 385.8 MB, free: 7.973 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.02443/0.7638, allocations: 3.933 MB / 389.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001343/0.764, allocations: 10.09 kB / 389.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004923/0.7689, allocations: 404.1 kB / 390.1 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008468/0.7774, allocations: 2.07 MB / 392.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000448/0.778, allocations: 232.5 kB / 392.4 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002131/0.7801, allocations: 299.3 kB / 392.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01732/0.7975, allocations: 3.855 MB / 396.6 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.7977, allocations: 10.89 kB / 396.6 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005512/0.7983, allocations: 118 kB / 396.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002548/0.7985, allocations: 147.7 kB / 396.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.8103, allocations: 3.254 MB / 400.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04347/0.8538, allocations: 12.15 MB / 412.2 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004538/0.8585, allocations: 1.935 MB / 414.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003545/0.8621, allocations: 1.168 MB / 415.3 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005837/0.8627, allocations: 211.2 kB / 415.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.741e-05/0.8628, allocations: 50.48 kB / 415.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 7.995e-06/0.8628, allocations: 0 / 415.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.02365/0.8865, allocations: 7.001 MB / 422.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.616e-05/0.8866, allocations: 68.72 kB / 422.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005709/0.8923, allocations: 2.032 MB / 424.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005128/0.8929, allocations: 49.7 kB / 424.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.8949, allocations: 1.461 MB / 426.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001243/0.8961, allocations: 0.5361 MB / 426.7 MB, free: 4.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000915/0.8971, allocations: 351.2 kB / 427.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.8973, allocations: 313 kB / 427.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002282/0.8996, allocations: 0.8823 MB / 428.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002913/0.9025, allocations: 1.441 MB / 429.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005703/0.9082, allocations: 2.513 MB / 432.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-05/0.9083, allocations: 4 kB / 432.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.009184/0.9175, allocations: 3 MB / 435.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.882e-05/0.9177, allocations: 12 kB / 435.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.648e-05/0.9178, allocations: 20 kB / 435.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.9193, allocations: 389.6 kB / 435.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002642/0.922, allocations: 476.1 kB / 436.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009358/0.9313, allocations: 6.14 MB / 442.3 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003597/0.935, allocations: 135.8 kB / 442.4 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005285/0.9356, allocations: 79.98 kB / 442.5 MB, free: 4.129 MB / 350.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.003756/0.9393, allocations: 0.9408 MB / 443.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/0.9405, allocations: 213.3 kB / 443.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007021/0.9475, allocations: 2.598 MB / 446.2 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.9476, allocations: 12 kB / 446.2 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.9476, allocations: 7.375 kB / 446.2 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.66e-05/0.9477, allocations: 7.969 kB / 446.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.9654, allocations: 5.86 MB / 452.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/0.9655, allocations: 4 kB / 452.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/0.9674, allocations: 292.7 kB / 452.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001636/0.9691, allocations: 404.2 kB / 452.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002319/0.9693, allocations: 35.98 kB / 452.8 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01287/0.9822, allocations: 7.588 MB / 460.4 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/0.9823, allocations: 4 kB / 460.4 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/0.9932, allocations: 3.844 MB / 464.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00284/0.9961, allocations: 486.2 kB / 464.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/0.9973, allocations: 36 kB / 464.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002418/0.9997, allocations: 95.88 kB / 464.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004808/1, allocations: 112.3 kB / 465 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1, allocations: 47.98 kB / 465 MB, free: 12.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00514/1.006, allocations: 1.386 MB / 466.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.375e-06/1.006, allocations: 0 / 466.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006469/1.012, allocations: 0.5625 MB / 467 MB, free: 10.95 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.001232/1.014, allocations: 214.5 kB / 467.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007602/1.021, allocations: 2.625 MB / 469.8 MB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/1.021, allocations: 0 / 469.8 MB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00445/1.026, allocations: 1.569 MB / 471.4 MB, free: 6.555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006131/1.032, allocations: 0.5209 MB / 471.9 MB, free: 6.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/1.053, allocations: 7.302 MB / 479.2 MB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004602/1.058, allocations: 2.212 MB / 481.4 MB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/1.059, allocations: 171.4 kB / 481.6 MB, free: 12.26 MB / 398.1 MB Notification: Performance of SimCode: time 1.963e-06/1.059, allocations: 0 / 481.6 MB, free: 12.26 MB / 398.1 MB Notification: Performance of Templates: time 0.5369/1.596, allocations: 94.61 MB / 0.5627 GB, free: 135.7 MB / 446.1 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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches