Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001535/0.001535, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001808/0.001808, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3387, allocations: 50.55 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01299/0.3518, allocations: 11.92 MB / 421.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007516/0.3593, allocations: 4.038 MB / 425.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.3613, allocations: 79.62 kB / 426 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002777/0.3641, allocations: 0.8807 MB / 426.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003339/0.3675, allocations: 0.9746 MB / 427.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001742/0.3693, allocations: 0.5617 MB / 428.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004135/0.3734, allocations: 3.41 MB / 431.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004194/0.3777, allocations: 3.085 MB / 434.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002555/0.3802, allocations: 1.592 MB / 436.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003226/0.3835, allocations: 2.043 MB / 438.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.3847, allocations: 436 kB / 439 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.3864, allocations: 0.5389 MB / 439.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001642/0.388, allocations: 1.266 MB / 440.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003057/0.3911, allocations: 1.932 MB / 442.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006998/0.3981, allocations: 5.698 MB / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.3982, allocations: 0 / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3982, allocations: 0 / 448.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001725/0.3984, allocations: 4 kB / 448.4 MB, free: 10.91 MB / 366.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.008933/0.4073, allocations: 3.947 MB / 452.3 MB, free: 6.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4073, allocations: 8.031 kB / 452.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.4084, allocations: 416.4 kB / 452.8 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.4126, allocations: 2.134 MB / 454.9 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.4127, allocations: 222.3 kB / 455.1 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004477/0.4132, allocations: 303.8 kB / 455.4 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006854/0.4201, allocations: 3.843 MB / 459.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.24e-05/0.4202, allocations: 11.91 kB / 459.3 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003181/0.4205, allocations: 123.9 kB / 459.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001887/0.4207, allocations: 153.7 kB / 459.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007045/0.4278, allocations: 3.259 MB / 462.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02487/0.4527, allocations: 12 MB / 474.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002708/0.4554, allocations: 1.957 MB / 476.8 MB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.4574, allocations: 1.145 MB / 477.9 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.4578, allocations: 211.5 kB / 478.1 MB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/0.4579, allocations: 51.88 kB / 478.2 MB, free: 12.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.417e-06/0.4579, allocations: 0 / 478.2 MB, free: 12.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01434/0.4722, allocations: 7.019 MB / 485.2 MB, free: 5.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.4723, allocations: 64.72 kB / 485.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.4756, allocations: 2.032 MB / 487.3 MB, free: 3.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.4758, allocations: 49.7 kB / 487.3 MB, free: 3.051 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.4768, allocations: 1.467 MB / 488.8 MB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000478/0.4773, allocations: 0.5353 MB / 489.3 MB, free: 1.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005816/0.4779, allocations: 343.3 kB / 489.7 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.478, allocations: 313.1 kB / 490 MB, free: 380 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/0.4795, allocations: 0.8746 MB / 490.8 MB, free: 15.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.4813, allocations: 1.454 MB / 492.3 MB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/0.4847, allocations: 2.502 MB / 494.8 MB, free: 11.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.4848, allocations: 8 kB / 494.8 MB, free: 11.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005188/0.49, allocations: 3.014 MB / 497.8 MB, free: 7.973 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.49, allocations: 12 kB / 497.8 MB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/0.4901, allocations: 20 kB / 497.8 MB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009164/0.491, allocations: 391.2 kB / 498.2 MB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/0.4927, allocations: 475.2 kB / 498.7 MB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006401/0.4991, allocations: 6.693 MB / 0.4935 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.5009, allocations: 143.6 kB / 0.4937 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.5012, allocations: 76 kB / 0.4938 GB, free: 15.76 MB / 430.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.001802/0.503, allocations: 0.9421 MB / 0.4947 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006316/0.5036, allocations: 213.3 kB / 0.4949 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/0.5082, allocations: 2.598 MB / 0.4974 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.5083, allocations: 20 kB / 0.4974 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.5083, allocations: 4 kB / 0.4974 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.5083, allocations: 7.969 kB / 0.4974 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01099/0.5193, allocations: 5.815 MB / 0.5031 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.5194, allocations: 4 kB / 0.5031 GB, free: 5.957 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.5206, allocations: 295.5 kB / 0.5034 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.5217, allocations: 411.3 kB / 0.5038 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001298/0.5218, allocations: 39.92 kB / 0.5038 GB, free: 5.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007392/0.5292, allocations: 8.26 MB / 0.5119 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.576e-06/0.5293, allocations: 4 kB / 0.5119 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005812/0.5351, allocations: 3.846 MB / 0.5157 GB, free: 8.445 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/0.5364, allocations: 478.2 kB / 0.5161 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004296/0.5368, allocations: 43.98 kB / 0.5162 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.538, allocations: 95.83 kB / 0.5163 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.5382, allocations: 117.1 kB / 0.5164 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.5383, allocations: 43.98 kB / 0.5164 GB, free: 7.664 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002288/0.5406, allocations: 1.39 MB / 0.5178 GB, free: 6.254 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5406, allocations: 0 / 0.5178 GB, free: 6.254 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002027/0.5427, allocations: 0.5664 MB / 0.5183 GB, free: 5.688 MB / 446.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.0004219/0.5431, allocations: 206.8 kB / 0.5185 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003917/0.547, allocations: 2.635 MB / 0.5211 GB, free: 2.781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.5471, allocations: 1.938 kB / 0.5211 GB, free: 2.781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.5492, allocations: 1.569 MB / 0.5226 GB, free: 1.152 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002773/0.552, allocations: 0.5651 MB / 0.5232 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.562, allocations: 5.915 MB / 0.5289 GB, free: 10.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.5643, allocations: 2.224 MB / 0.5311 GB, free: 8.344 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000755/0.5651, allocations: 179.4 kB / 0.5313 GB, free: 8.168 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.5651, allocations: 3.938 kB / 0.5313 GB, free: 8.164 MB / 462.1 MB Notification: Performance of Templates: time 0.3511/0.9162, allocations: 95.45 MB / 0.6245 GB, free: 44.2 MB / 462.1 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches