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.000766/0.0007661, allocations: 97.75 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008942/0.0008942, allocations: 200.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.123/1.123, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001754/0.0001755, allocations: 8 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07112/0.07131, allocations: 51.52 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008937/0.08026, allocations: 10.79 MB / 370 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1311/0.2113, allocations: 3.514 MB / 373.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.2128, allocations: 61.16 kB / 373.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.2146, allocations: 0.7368 MB / 374.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002211/0.2168, allocations: 0.8518 MB / 375.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009016/0.2177, allocations: 392.1 kB / 375.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00402/0.2217, allocations: 4.411 MB / 380 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002222/0.224, allocations: 2.386 MB / 382.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.2256, allocations: 1.25 MB / 383.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001565/0.2271, allocations: 1.691 MB / 385.3 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.2274, allocations: 182.2 kB / 385.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005847/0.228, allocations: 287.2 kB / 385.8 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007076/0.2287, allocations: 0.909 MB / 386.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.2299, allocations: 1.647 MB / 388.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.2329, allocations: 5.177 MB / 393.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.2329, allocations: 3.938 kB / 393.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2329, allocations: 0.9062 kB / 393.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.46e-05/0.2329, allocations: 0 / 393.5 MB, free: 2.801 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.004325/0.2373, allocations: 3.231 MB / 396.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.2373, allocations: 12.72 kB / 396.8 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006901/0.238, allocations: 392.3 kB / 397.1 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/0.2403, allocations: 1.992 MB / 399.1 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.2405, allocations: 218.1 kB / 399.4 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003337/0.2408, allocations: 285.5 kB / 399.6 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00497/0.2458, allocations: 3.859 MB / 403.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.079e-05/0.2458, allocations: 7.938 kB / 403.5 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/0.2461, allocations: 122.6 kB / 403.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-05/0.2462, allocations: 121.5 kB / 403.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004219/0.2504, allocations: 3.262 MB / 407 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.2641, allocations: 11.97 MB / 419 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002618/0.2668, allocations: 3.66 MB / 422.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.2685, allocations: 1.245 MB / 423.9 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000187/0.2687, allocations: 122.3 kB / 424 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.2687, allocations: 55.88 kB / 424 MB, free: 6.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 2.154e-06/0.2687, allocations: 0 / 424 MB, free: 6.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01131/0.2801, allocations: 7.37 MB / 431.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.2801, allocations: 72.72 kB / 431.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002219/0.2823, allocations: 2.064 MB / 433.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.728e-05/0.2824, allocations: 49.7 kB / 433.6 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007844/0.2832, allocations: 1.372 MB / 435 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000318/0.2835, allocations: 0.5058 MB / 435.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.2837, allocations: 165.6 kB / 435.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.316e-05/0.2838, allocations: 309.1 kB / 435.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.2849, allocations: 0.8705 MB / 436.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.2863, allocations: 1.374 MB / 438.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.2888, allocations: 2.328 MB / 440.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.2889, allocations: 4 kB / 440.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004451/0.2933, allocations: 3.281 MB / 443.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.2933, allocations: 12 kB / 443.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.2934, allocations: 16 kB / 443.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001855/0.2952, allocations: 0.8598 MB / 444.7 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.2962, allocations: 347.4 kB / 445 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/0.3095, allocations: 18.85 MB / 463.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.3105, allocations: 95.83 kB / 464 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3107, allocations: 76 kB / 464 MB, free: 12.17 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.001201/0.3119, allocations: 0.946 MB / 465 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002567/0.3121, allocations: 217.4 kB / 465.2 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.3158, allocations: 2.636 MB / 467.8 MB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.3158, allocations: 16 kB / 467.9 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3158, allocations: 4 kB / 467.9 MB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.3158, allocations: 7.969 kB / 467.9 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007451/0.3233, allocations: 5.919 MB / 473.8 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.3233, allocations: 4.141 kB / 473.8 MB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000663/0.324, allocations: 203.6 kB / 474 MB, free: 2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001515/0.3255, allocations: 0.7236 MB / 474.7 MB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.71e-05/0.3256, allocations: 39.98 kB / 474.7 MB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01141/0.337, allocations: 16.74 MB / 491.5 MB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.337, allocations: 7.938 kB / 491.5 MB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.3416, allocations: 3.804 MB / 495.3 MB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006595/0.3423, allocations: 482.3 kB / 495.8 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.3425, allocations: 39.92 kB / 495.8 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009279/0.3434, allocations: 111.9 kB / 495.9 MB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002338/0.3437, allocations: 141 kB / 496.1 MB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-05/0.3438, allocations: 47.98 kB / 496.1 MB, free: 10.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001626/0.3454, allocations: 1.4 MB / 497.5 MB, free: 8.973 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3454, allocations: 0 / 497.5 MB, free: 8.973 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00191/0.3473, allocations: 0.6562 MB / 498.2 MB, free: 8.316 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.0003175/0.3477, allocations: 213.2 kB / 498.4 MB, free: 8.102 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.3513, allocations: 3.449 MB / 0.4901 GB, free: 4.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3513, allocations: 4 kB / 0.4901 GB, free: 4.516 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.3534, allocations: 2.201 MB / 0.4922 GB, free: 2.188 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0031/0.3565, allocations: 0.6553 MB / 0.4928 GB, free: 1.539 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007073/0.3636, allocations: 7.047 MB / 0.4997 GB, free: 10.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001639/0.3653, allocations: 2.288 MB / 0.502 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001082/0.3663, allocations: 498.8 kB / 0.5024 GB, free: 7.609 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.3666, allocations: 135.4 kB / 0.5026 GB, free: 7.477 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3667, allocations: 3.938 kB / 0.5026 GB, free: 7.473 MB / 430.1 MB Notification: Performance of Templates: time 0.1801/0.5468, allocations: 36.22 MB / 0.5379 GB, free: 130.8 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/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