Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smee.is.1.|smee.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 105.5 kB / 17.73 MB, free: 5.238 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.001301/0.001301, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.571/1.571, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001263, allocations: 55.92 kB / 328.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1305, allocations: 46.6 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.3875/0.518, allocations: 11.59 MB / 386.8 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.5306, allocations: 3.96 MB / 390.7 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005726/0.5364, allocations: 63.75 kB / 390.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004751/0.5412, allocations: 0.8634 MB / 391.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007152/0.5484, allocations: 0.9493 MB / 392.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.5509, allocations: 0.5206 MB / 393.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007123/0.558, allocations: 3.306 MB / 396.4 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005029/0.5631, allocations: 2.987 MB / 399.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004006/0.5671, allocations: 1.537 MB / 400.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005388/0.5725, allocations: 1.969 MB / 402.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.5742, allocations: 422.6 kB / 403.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002384/0.5766, allocations: 0.5246 MB / 403.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001915/0.5785, allocations: 1.217 MB / 405.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003679/0.5822, allocations: 1.881 MB / 406.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00856/0.5908, allocations: 5.525 MB / 412.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.5908, allocations: 0 / 412.5 MB, free: 8.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.5909, allocations: 4 kB / 412.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002852/0.5911, allocations: 0 / 412.5 MB, free: 8.312 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01249/0.6036, allocations: 3.809 MB / 416.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.399e-05/0.6037, allocations: 9.781 kB / 416.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.6053, allocations: 395 kB / 416.7 MB, free: 5.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004885/0.6102, allocations: 1.941 MB / 418.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002005/0.6104, allocations: 214.2 kB / 418.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004902/0.6109, allocations: 283.8 kB / 419.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007623/0.6185, allocations: 3.705 MB / 422.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.105e-05/0.6186, allocations: 7.906 kB / 422.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000299/0.6189, allocations: 112 kB / 422.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002087/0.6192, allocations: 147.1 kB / 423.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00592/0.6251, allocations: 3.11 MB / 426.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02706/0.6522, allocations: 11.49 MB / 437.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003327/0.6556, allocations: 1.92 MB / 439.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.6579, allocations: 1.068 MB / 440.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004901/0.6584, allocations: 211.2 kB / 440.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.152e-05/0.6585, allocations: 44.12 kB / 440.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 4.678e-06/0.6585, allocations: 3.938 kB / 440.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01746/0.676, allocations: 6.523 MB / 447.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.6761, allocations: 68.72 kB / 447.5 MB, free: 6.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/0.6812, allocations: 1.99 MB / 449.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002861/0.6815, allocations: 49.7 kB / 449.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001517/0.683, allocations: 1.412 MB / 451 MB, free: 2.852 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007196/0.6838, allocations: 485 kB / 451.4 MB, free: 2.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008652/0.6846, allocations: 336.3 kB / 451.8 MB, free: 2.035 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.6848, allocations: 301.1 kB / 452.1 MB, free: 1.738 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001829/0.6866, allocations: 0.8159 MB / 452.9 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.6887, allocations: 1.379 MB / 454.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003502/0.6922, allocations: 2.368 MB / 456.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.476e-05/0.6922, allocations: 8 kB / 456.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006257/0.6985, allocations: 2.854 MB / 459.5 MB, free: 9.777 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.242e-05/0.6986, allocations: 12 kB / 459.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.703e-05/0.6987, allocations: 16 kB / 459.5 MB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.6997, allocations: 387.5 kB / 459.9 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.7014, allocations: 427.3 kB / 460.3 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008798/0.7102, allocations: 6.718 MB / 467 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002596/0.7128, allocations: 123.8 kB / 467.1 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003796/0.7132, allocations: 79.98 kB / 467.2 MB, free: 1.609 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 206 * 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.003183/0.7164, allocations: 0.9116 MB / 468.1 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008544/0.7173, allocations: 213.3 kB / 468.3 MB, free: 488 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.7224, allocations: 2.425 MB / 470.8 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/0.7224, allocations: 16 kB / 470.8 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.517e-05/0.7224, allocations: 7.938 kB / 470.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.7225, allocations: 3.984 kB / 470.8 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.7371, allocations: 5.509 MB / 476.3 MB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.327e-05/0.7372, allocations: 4 kB / 476.3 MB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.7384, allocations: 255.6 kB / 476.6 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001186/0.7396, allocations: 407.8 kB / 476.9 MB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001653/0.7398, allocations: 39.98 kB / 477 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008783/0.7486, allocations: 8.251 MB / 485.2 MB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.507e-05/0.7487, allocations: 4 kB / 485.2 MB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006948/0.7556, allocations: 3.599 MB / 488.8 MB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/0.7572, allocations: 466.4 kB / 489.3 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/0.7583, allocations: 36 kB / 489.3 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001902/0.7602, allocations: 87.89 kB / 489.4 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/0.7605, allocations: 105 kB / 489.5 MB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.7607, allocations: 51.98 kB / 489.6 MB, free: 10.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003868/0.7646, allocations: 1.354 MB / 490.9 MB, free: 8.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7646, allocations: 4 kB / 490.9 MB, free: 8.969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004157/0.7687, allocations: 0.5352 MB / 491.5 MB, free: 8.434 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (129): * Single equations (assignments): 125 * 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,1,100.0%), (1,6,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.0008005/0.7696, allocations: 203.6 kB / 491.7 MB, free: 8.227 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005039/0.7746, allocations: 2.507 MB / 494.2 MB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/0.7747, allocations: 0 / 494.2 MB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.7771, allocations: 1.492 MB / 495.7 MB, free: 4.121 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004597/0.7817, allocations: 0.5358 MB / 496.2 MB, free: 3.582 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01656/0.7983, allocations: 5.672 MB / 0.4901 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005403/0.8038, allocations: 2.197 MB / 0.4923 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002832/0.8067, allocations: 0.494 MB / 0.4927 GB, free: 11.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.8079, allocations: 151.4 kB / 0.4929 GB, free: 10.95 MB / 430.1 MB Notification: Performance of SimCode: time 1.503e-06/0.8079, allocations: 0 / 0.4929 GB, free: 10.95 MB / 430.1 MB Notification: Performance of Templates: time 0.0727/0.8806, allocations: 30.12 MB / 0.5223 GB, free: 12.78 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches