Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00161/0.00161, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001899/0.001899, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 62.5 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09473, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01227/0.107, allocations: 11.45 MB / 370.4 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1966/0.3037, allocations: 3.581 MB / 373.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.3059, allocations: 73.39 kB / 374 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003014/0.309, allocations: 0.8317 MB / 374.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003764/0.3128, allocations: 0.9355 MB / 375.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.3144, allocations: 433.6 kB / 376.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00576/0.3201, allocations: 3.762 MB / 380 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003664/0.3238, allocations: 2.865 MB / 382.8 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003757/0.3276, allocations: 1.664 MB / 384.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003606/0.3312, allocations: 1.97 MB / 386.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008559/0.3321, allocations: 417.6 kB / 386.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001615/0.3337, allocations: 0.4948 MB / 387.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001358/0.3351, allocations: 1.197 MB / 388.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003441/0.3386, allocations: 1.944 MB / 390.5 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006334/0.3449, allocations: 5.539 MB / 396 MB, free: 1.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3449, allocations: 0 / 396 MB, free: 1.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3449, allocations: 0 / 396 MB, free: 1.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001722/0.3451, allocations: 1.75 kB / 396 MB, free: 1.059 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01111/0.3562, allocations: 3.823 MB / 399.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3563, allocations: 8.281 kB / 399.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001214/0.3575, allocations: 392.9 kB / 400.3 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004097/0.3616, allocations: 2.059 MB / 402.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.3618, allocations: 217.6 kB / 402.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/0.3623, allocations: 284.4 kB / 402.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006529/0.3688, allocations: 3.86 MB / 406.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.966e-05/0.3689, allocations: 11.94 kB / 406.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.3692, allocations: 116 kB / 406.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.3693, allocations: 117.5 kB / 406.9 MB, free: 8.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005214/0.3745, allocations: 3.258 MB / 410.2 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01996/0.3945, allocations: 11.77 MB / 421.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003402/0.3979, allocations: 3.662 MB / 425.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.4, allocations: 1.239 MB / 426.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002864/0.4003, allocations: 129.2 kB / 427 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.4004, allocations: 51.88 kB / 427 MB, free: 3.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.567e-06/0.4004, allocations: 0 / 427 MB, free: 3.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.0145/0.4149, allocations: 7.332 MB / 434.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.415, allocations: 73.84 kB / 434.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.4183, allocations: 2.06 MB / 436.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.4185, allocations: 53.7 kB / 436.5 MB, free: 9.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.4198, allocations: 1.369 MB / 437.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006754/0.4205, allocations: 0.5129 MB / 438.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000697/0.4212, allocations: 347.2 kB / 438.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.4214, allocations: 305.1 kB / 439 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.4228, allocations: 0.8705 MB / 439.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.4245, allocations: 1.361 MB / 441.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/0.4275, allocations: 2.326 MB / 443.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.4275, allocations: 4 kB / 443.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00568/0.4332, allocations: 3.277 MB / 446.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.076e-05/0.4333, allocations: 18.59 kB / 446.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.617e-05/0.4333, allocations: 16.5 kB / 446.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/0.4356, allocations: 0.8497 MB / 447.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001204/0.4369, allocations: 343.4 kB / 448.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01704/0.4539, allocations: 20.59 MB / 468.7 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.4559, allocations: 91.84 kB / 468.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.4561, allocations: 79.98 kB / 468.9 MB, free: 7.406 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001667/0.4578, allocations: 0.9456 MB / 469.8 MB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004261/0.4582, allocations: 213.4 kB / 470 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004342/0.4626, allocations: 2.633 MB / 472.6 MB, free: 3.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.4626, allocations: 16 kB / 472.7 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.4626, allocations: 8 kB / 472.7 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.4626, allocations: 7.969 kB / 472.7 MB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.4729, allocations: 5.867 MB / 478.5 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.4729, allocations: 4 kB / 478.5 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/0.4737, allocations: 196.2 kB / 478.7 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/0.4762, allocations: 0.7458 MB / 479.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/0.4763, allocations: 35.94 kB / 479.5 MB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01839/0.4947, allocations: 18.16 MB / 497.7 MB, free: 8.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.4948, allocations: 11.94 kB / 497.7 MB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006685/0.5015, allocations: 3.791 MB / 0.4897 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/0.5031, allocations: 482.3 kB / 0.4902 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.5035, allocations: 39.92 kB / 0.4902 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.5046, allocations: 103.9 kB / 0.4903 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003732/0.505, allocations: 133.1 kB / 0.4905 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.5051, allocations: 51.92 kB / 0.4905 GB, free: 4.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002347/0.5075, allocations: 1.4 MB / 0.4919 GB, free: 2.789 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5075, allocations: 4 kB / 0.4919 GB, free: 2.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002451/0.5099, allocations: 0.6601 MB / 0.4925 GB, free: 2.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.0004249/0.5104, allocations: 215.8 kB / 0.4927 GB, free: 1.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004894/0.5153, allocations: 3.453 MB / 0.4961 GB, free: 14.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.5153, allocations: 7.938 kB / 0.4961 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002793/0.5181, allocations: 2.193 MB / 0.4982 GB, free: 11.99 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003078/0.5212, allocations: 0.6801 MB / 0.4989 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008851/0.5301, allocations: 5.675 MB / 0.5044 GB, free: 5.582 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002019/0.5321, allocations: 2.288 MB / 0.5067 GB, free: 3.266 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001464/0.5336, allocations: 0.4949 MB / 0.5072 GB, free: 2.766 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003609/0.534, allocations: 139.4 kB / 0.5073 GB, free: 2.629 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.534, allocations: 0 / 0.5073 GB, free: 2.629 MB / 430.1 MB Notification: Performance of Templates: time 0.2505/0.7845, allocations: 36.03 MB / 0.5425 GB, free: 138.1 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches