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.00113/0.00113, allocations: 94.72 kB / 16.3 MB, free: 6.074 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.001318/0.001318, allocations: 184.5 kB / 17.2 MB, free: 5.973 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.346/1.346, allocations: 223.2 MB / 241.1 MB, free: 272 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002718, allocations: 11.94 kB / 300.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 50.41 MB / 351.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01307/0.1276, allocations: 9.724 MB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1378, allocations: 3.839 MB / 364.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002668/0.1406, allocations: 63.69 kB / 364.8 MB, free: 6.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002951/0.1435, allocations: 0.7268 MB / 365.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003644/0.1472, allocations: 0.8723 MB / 366.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.1485, allocations: 367.5 kB / 366.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004003/0.1525, allocations: 2.188 MB / 368.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1847/0.3372, allocations: 2.161 MB / 371.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002376/0.3396, allocations: 1.061 MB / 372.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.3423, allocations: 1.43 MB / 373.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000538/0.3428, allocations: 165.4 kB / 373.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009324/0.3438, allocations: 251.2 kB / 374 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.3448, allocations: 0.8873 MB / 374.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008024/0.3456, allocations: 0.6467 MB / 375.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005504/0.3511, allocations: 4.496 MB / 380 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3511, allocations: 0 / 380 MB, free: 9.949 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3511, allocations: 0 / 380 MB, free: 9.949 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001939/0.3513, allocations: 0 / 380 MB, free: 9.949 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.008405/0.3598, allocations: 3.314 MB / 383.3 MB, free: 8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3598, allocations: 8.344 kB / 383.3 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00183/0.3617, allocations: 409.8 kB / 383.7 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004807/0.3665, allocations: 2.023 MB / 385.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.3667, allocations: 229.2 kB / 386 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006758/0.3674, allocations: 301.1 kB / 386.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007179/0.3746, allocations: 3.804 MB / 390.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.117e-05/0.3747, allocations: 13.53 kB / 390.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002492/0.375, allocations: 118.5 kB / 390.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/0.3751, allocations: 152.7 kB / 390.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005672/0.3808, allocations: 3.238 MB / 393.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01913/0.3999, allocations: 12.15 MB / 405.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.4024, allocations: 1.935 MB / 407.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002822/0.4027, allocations: 214.1 kB / 407.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.4027, allocations: 47.88 kB / 407.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 3.246e-06/0.4027, allocations: 0 / 407.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01449/0.4172, allocations: 7.327 MB / 415.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.4173, allocations: 68.66 kB / 415.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/0.4209, allocations: 1.962 MB / 417.3 MB, free: 488 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002913/0.4212, allocations: 49.7 kB / 417.3 MB, free: 432 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.4222, allocations: 1.463 MB / 418.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000462/0.4227, allocations: 0.5366 MB / 419.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.832e-05/0.4228, allocations: 40 kB / 419.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.4229, allocations: 381.9 kB / 419.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4243, allocations: 0.8706 MB / 420.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.4259, allocations: 1.445 MB / 422.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.4275, allocations: 1.119 MB / 423.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.956e-06/0.4275, allocations: 4 kB / 423.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004719/0.4322, allocations: 2.986 MB / 426.2 MB, free: 7.309 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.4323, allocations: 17.39 kB / 426.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.4323, allocations: 16 kB / 426.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008/0.4331, allocations: 363.2 kB / 426.6 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.4348, allocations: 487.2 kB / 427 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005239/0.44, allocations: 6.034 MB / 433.1 MB, free: 0 / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.4419, allocations: 143.8 kB / 433.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.4421, allocations: 83.98 kB / 433.3 MB, free: 15.77 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00191/0.444, allocations: 0.9305 MB / 434.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004549/0.4445, allocations: 213.3 kB / 434.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004021/0.4485, allocations: 2.58 MB / 437 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.4485, allocations: 12 kB / 437 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4486, allocations: 4 kB / 437 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.4486, allocations: 7.969 kB / 437 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009412/0.458, allocations: 5.794 MB / 442.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/0.458, allocations: 4.5 kB / 442.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.4593, allocations: 295.6 kB / 443.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009633/0.4603, allocations: 386.9 kB / 443.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.4604, allocations: 43.94 kB / 443.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006467/0.4669, allocations: 7.542 MB / 451.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.739e-06/0.4669, allocations: 7.984 kB / 451.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005876/0.4728, allocations: 4.094 MB / 455.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.4742, allocations: 488.6 kB / 455.7 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.4745, allocations: 36 kB / 455.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.4755, allocations: 91.98 kB / 455.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.4757, allocations: 125 kB / 455.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.38e-05/0.4758, allocations: 43.98 kB / 456 MB, free: 8.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002129/0.478, allocations: 1.331 MB / 457.3 MB, free: 6.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.478, allocations: 0 / 457.3 MB, free: 6.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002026/0.48, allocations: 0.5547 MB / 457.8 MB, free: 6.254 MB / 366.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 (149): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003395/0.4804, allocations: 181.1 kB / 458 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003624/0.484, allocations: 2.611 MB / 460.6 MB, free: 3.402 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.484, allocations: 8.812 kB / 460.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.4859, allocations: 1.556 MB / 462.2 MB, free: 1.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.4883, allocations: 0.5081 MB / 462.7 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009901/0.4982, allocations: 7.009 MB / 469.7 MB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/0.5003, allocations: 2.305 MB / 472 MB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002043/0.5023, allocations: 0.5376 MB / 472.6 MB, free: 7.336 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004863/0.5028, allocations: 163.4 kB / 472.7 MB, free: 7.176 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5028, allocations: 0 / 472.7 MB, free: 7.176 MB / 382.1 MB Notification: Performance of Templates: time 0.05113/0.554, allocations: 27.9 MB / 0.4889 GB, free: 11.58 MB / 414.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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches