Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 109.8 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008231/0.0008232, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2352, allocations: 49.43 MB / 399.5 MB, free: 33.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008794/0.244, allocations: 11.32 MB / 410.8 MB, free: 22.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00587/0.2499, allocations: 3.5 MB / 414.3 MB, free: 18.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001689/0.2517, allocations: 75.62 kB / 414.4 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001837/0.2535, allocations: 0.7342 MB / 415.1 MB, free: 17.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002102/0.2557, allocations: 0.8547 MB / 416 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006961/0.2564, allocations: 383.6 kB / 416.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003043/0.2594, allocations: 4.458 MB / 420.8 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002062/0.2615, allocations: 2.409 MB / 423.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0017/0.2632, allocations: 1.428 MB / 424.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.2651, allocations: 1.911 MB / 426.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004054/0.2655, allocations: 260 kB / 426.8 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007913/0.2663, allocations: 359.8 kB / 427.1 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007471/0.2671, allocations: 1.032 MB / 428.2 MB, free: 4.547 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001647/0.2687, allocations: 1.761 MB / 429.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003844/0.2726, allocations: 5.335 MB / 435.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2726, allocations: 0 / 435.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2726, allocations: 0 / 435.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001393/0.2728, allocations: 0 / 435.3 MB, free: 13.43 MB / 314.7 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.008536/0.2813, allocations: 3.813 MB / 439.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2814, allocations: 12.03 kB / 439.1 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.2824, allocations: 392.5 kB / 439.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003877/0.2863, allocations: 1.981 MB / 441.5 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.2865, allocations: 210.1 kB / 441.7 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005427/0.287, allocations: 283.9 kB / 441.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00722/0.2943, allocations: 3.865 MB / 445.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.273e-05/0.2944, allocations: 7.906 kB / 445.8 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003446/0.2948, allocations: 116 kB / 445.9 MB, free: 2.551 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001708/0.2949, allocations: 125.5 kB / 446.1 MB, free: 2.426 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005671/0.3006, allocations: 3.254 MB / 449.3 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02019/0.3208, allocations: 11.91 MB / 461.2 MB, free: 2.934 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003179/0.3241, allocations: 3.663 MB / 464.9 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.326, allocations: 1.24 MB / 466.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.3262, allocations: 118.4 kB / 466.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.3263, allocations: 51.88 kB / 466.3 MB, free: 13.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.647e-06/0.3263, allocations: 0 / 466.3 MB, free: 13.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01362/0.3399, allocations: 7.316 MB / 473.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.34, allocations: 68.66 kB / 473.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003236/0.3433, allocations: 2.056 MB / 475.7 MB, free: 3.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002344/0.3435, allocations: 53.7 kB / 475.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009906/0.3445, allocations: 1.378 MB / 477.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005238/0.3451, allocations: 0.5083 MB / 477.7 MB, free: 1.707 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005397/0.3456, allocations: 343.3 kB / 478 MB, free: 1.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3457, allocations: 305.1 kB / 478.3 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.347, allocations: 0.8705 MB / 479.2 MB, free: 200 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.3486, allocations: 1.373 MB / 480.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002886/0.3515, allocations: 2.326 MB / 482.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.3515, allocations: 4 kB / 482.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005669/0.3572, allocations: 3.274 MB / 486.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.3572, allocations: 16.06 kB / 486.2 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.039e-05/0.3573, allocations: 16 kB / 486.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.3596, allocations: 0.8443 MB / 487 MB, free: 7.824 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.3608, allocations: 343.4 kB / 487.4 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/0.3763, allocations: 18.83 MB / 0.4943 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/0.3782, allocations: 99.83 kB / 0.4944 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.3784, allocations: 72 kB / 0.4945 GB, free: 3.02 MB / 378.7 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.001579/0.38, allocations: 0.9421 MB / 0.4954 GB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004041/0.3804, allocations: 213.4 kB / 0.4956 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1992/0.5796, allocations: 2.632 MB / 0.4982 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.741e-05/0.5797, allocations: 14.75 kB / 0.4982 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/0.5797, allocations: 8.297 kB / 0.4982 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.3e-05/0.5797, allocations: 8.547 kB / 0.4982 GB, free: 93.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009665/0.5894, allocations: 5.909 MB / 0.504 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.5895, allocations: 3.938 kB / 0.504 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008294/0.5903, allocations: 196.4 kB / 0.5042 GB, free: 91.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.5922, allocations: 0.7337 MB / 0.5049 GB, free: 91.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-05/0.5923, allocations: 42.62 kB / 0.5049 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.6028, allocations: 16.73 MB / 0.5213 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6028, allocations: 7.344 kB / 0.5213 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0376/0.6404, allocations: 36.24 MB / 0.5567 GB, free: 41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.6416, allocations: 474.3 kB / 0.5571 GB, free: 40.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004315/0.6421, allocations: 43.92 kB / 0.5572 GB, free: 40.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/0.6435, allocations: 107.9 kB / 0.5573 GB, free: 40.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/0.6439, allocations: 133 kB / 0.5574 GB, free: 40.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.644, allocations: 53.77 kB / 0.5574 GB, free: 40.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002076/0.6461, allocations: 1.404 MB / 0.5588 GB, free: 38.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6461, allocations: 0 / 0.5588 GB, free: 38.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003236/0.6494, allocations: 0.9258 MB / 0.5597 GB, free: 37.83 MB / 378.7 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.0004459/0.6498, allocations: 210.5 kB / 0.5599 GB, free: 37.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003674/0.6535, allocations: 3.431 MB / 0.5633 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6535, allocations: 0 / 0.5633 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.6555, allocations: 2.213 MB / 0.5654 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003172/0.6587, allocations: 0.6376 MB / 0.566 GB, free: 31.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.6712, allocations: 9.358 MB / 0.5752 GB, free: 21.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.6732, allocations: 2.35 MB / 0.5775 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001646/0.6749, allocations: 0.5027 MB / 0.578 GB, free: 18.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003688/0.6753, allocations: 139.4 kB / 0.5781 GB, free: 18.54 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6753, allocations: 0 / 0.5781 GB, free: 18.54 MB / 378.7 MB Notification: Performance of Templates: time 0.06547/0.7408, allocations: 44.19 MB / 0.6212 GB, free: 6.844 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches