Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001258, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001448, allocations: 55.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3334, allocations: 50.54 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01344/0.3469, allocations: 10.94 MB / 420.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008441/0.3553, allocations: 3.672 MB / 424.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002503/0.3579, allocations: 67.69 kB / 424.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002734/0.3606, allocations: 0.8189 MB / 425.4 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003875/0.3646, allocations: 0.8619 MB / 426.3 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.3663, allocations: 467.3 kB / 426.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005371/0.3717, allocations: 2.949 MB / 429.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004842/0.3766, allocations: 2.731 MB / 432.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002715/0.3793, allocations: 1.382 MB / 433.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003664/0.383, allocations: 1.763 MB / 435.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001261/0.3843, allocations: 372 kB / 436 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001901/0.3862, allocations: 479.8 kB / 436.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001855/0.3881, allocations: 1.075 MB / 437.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003385/0.3915, allocations: 1.672 MB / 439.2 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00789/0.3994, allocations: 4.892 MB / 444.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3995, allocations: 0 / 444.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3995, allocations: 0 / 444.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001454/0.3996, allocations: 4 kB / 444.1 MB, free: 15.27 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01087/0.4105, allocations: 3.398 MB / 447.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.4106, allocations: 12.03 kB / 447.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001523/0.4121, allocations: 349 kB / 447.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005328/0.4175, allocations: 1.826 MB / 449.6 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/0.4177, allocations: 189.4 kB / 449.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008633/0.4186, allocations: 259.8 kB / 450.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009088/0.4277, allocations: 3.283 MB / 453.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.4279, allocations: 11.89 kB / 453.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003354/0.4282, allocations: 100 kB / 453.5 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/0.4284, allocations: 120.9 kB / 453.6 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007063/0.4355, allocations: 2.752 MB / 456.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02342/0.4589, allocations: 10.37 MB / 466.7 MB, free: 8.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.4615, allocations: 1.373 MB / 468.1 MB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.4631, allocations: 0.7578 MB / 468.8 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004063/0.4635, allocations: 208.2 kB / 469 MB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.168e-05/0.4636, allocations: 47.56 kB / 469.1 MB, free: 5.539 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.697e-06/0.4636, allocations: 4 kB / 469.1 MB, free: 5.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01764/0.4813, allocations: 6.906 MB / 476 MB, free: 14.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.4814, allocations: 64.41 kB / 476.1 MB, free: 14.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003954/0.4853, allocations: 1.794 MB / 477.9 MB, free: 12.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001316/0.4855, allocations: 45.7 kB / 477.9 MB, free: 12.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.4865, allocations: 1.268 MB / 479.2 MB, free: 11.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004663/0.487, allocations: 433.8 kB / 479.6 MB, free: 10.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005499/0.4876, allocations: 295.3 kB / 479.9 MB, free: 10.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4877, allocations: 309.1 kB / 480.2 MB, free: 10.28 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.489, allocations: 0.773 MB / 481 MB, free: 9.508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4908, allocations: 1.288 MB / 482.2 MB, free: 7.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003924/0.4948, allocations: 2.214 MB / 484.5 MB, free: 5.551 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-05/0.4948, allocations: 4 kB / 484.5 MB, free: 5.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005391/0.5002, allocations: 2.474 MB / 486.9 MB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.5003, allocations: 12 kB / 486.9 MB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.965e-05/0.5003, allocations: 16 kB / 487 MB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000714/0.5011, allocations: 247.6 kB / 487.2 MB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.5026, allocations: 419.3 kB / 487.6 MB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/0.5057, allocations: 3.238 MB / 490.8 MB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.5076, allocations: 135.7 kB / 491 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001913/0.5078, allocations: 71.98 kB / 491.1 MB, free: 14.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002111/0.5099, allocations: 0.8172 MB / 491.9 MB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006371/0.5105, allocations: 185.7 kB / 492.1 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/0.5144, allocations: 2.043 MB / 494.1 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.5144, allocations: 12 kB / 494.1 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.5144, allocations: 0 / 494.1 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.5144, allocations: 7.969 kB / 494.1 MB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.5252, allocations: 4.745 MB / 498.9 MB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.5252, allocations: 4 kB / 498.9 MB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.5263, allocations: 263.6 kB / 499.1 MB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005425/0.5269, allocations: 203.5 kB / 499.3 MB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.527, allocations: 24 kB / 499.3 MB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003058/0.5301, allocations: 3.219 MB / 0.4908 GB, free: 2.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.5301, allocations: 7.938 kB / 0.4908 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.5351, allocations: 3.131 MB / 0.4938 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/0.5365, allocations: 426.7 kB / 0.4943 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006016/0.5371, allocations: 24 kB / 0.4943 GB, free: 15.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.5385, allocations: 99.8 kB / 0.4944 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.5387, allocations: 80.95 kB / 0.4944 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-05/0.5388, allocations: 32 kB / 0.4945 GB, free: 14.82 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002838/0.5417, allocations: 1.228 MB / 0.4957 GB, free: 13.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5417, allocations: 0 / 0.4957 GB, free: 13.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002609/0.5443, allocations: 488 kB / 0.4961 GB, free: 13.13 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.0005491/0.5448, allocations: 196.2 kB / 0.4963 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004514/0.5494, allocations: 2.35 MB / 0.4986 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.5494, allocations: 0 / 0.4986 GB, free: 10.51 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.5516, allocations: 1.343 MB / 0.4999 GB, free: 9.098 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.5553, allocations: 0.4943 MB / 0.5004 GB, free: 8.617 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009744/0.565, allocations: 4.912 MB / 0.5052 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001709/0.5668, allocations: 1.982 MB / 0.5072 GB, free: 1.625 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007141/0.5675, allocations: 151.4 kB / 0.5073 GB, free: 1.477 MB / 430.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5675, allocations: 0 / 0.5073 GB, free: 1.477 MB / 430.1 MB Notification: Performance of Templates: time 0.3425/0.9101, allocations: 82.98 MB / 0.5883 GB, free: 86.11 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches