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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 111.6 kB / 17.29 MB, free: 6.188 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.001244/0.001244, allocations: 193.3 kB / 18.21 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 48.33 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09133, allocations: 49.45 MB / 350.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01214/0.1035, allocations: 11.32 MB / 361.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006693/0.1102, allocations: 3.505 MB / 365.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.1119, allocations: 59.75 kB / 365.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002396/0.1143, allocations: 0.742 MB / 365.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002807/0.1172, allocations: 0.8353 MB / 366.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001065/0.1182, allocations: 391.5 kB / 367.1 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004127/0.1224, allocations: 3.739 MB / 370.8 MB, free: 88 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1529/0.2753, allocations: 2.868 MB / 373.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.2777, allocations: 1.66 MB / 375.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003165/0.2809, allocations: 2.025 MB / 377.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0013/0.2822, allocations: 418.9 kB / 377.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.2841, allocations: 0.4965 MB / 378.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.2856, allocations: 1.199 MB / 379.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005928/0.2916, allocations: 1.931 MB / 381.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006272/0.2979, allocations: 4.592 MB / 386 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.2979, allocations: 1.094 kB / 386 MB, free: 7.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2979, allocations: 0 / 386 MB, free: 7.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001924/0.2981, allocations: 0 / 386 MB, free: 7.867 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.009619/0.3077, allocations: 3.81 MB / 389.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3078, allocations: 9.219 kB / 389.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.309, allocations: 393.5 kB / 390.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003325/0.3123, allocations: 1.985 MB / 392.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001452/0.3125, allocations: 212.2 kB / 392.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004481/0.313, allocations: 288.6 kB / 392.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006339/0.3193, allocations: 3.86 MB / 396.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.059e-05/0.3194, allocations: 9.75 kB / 396.6 MB, free: 1.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.3197, allocations: 116.6 kB / 396.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.99e-05/0.3198, allocations: 123.8 kB / 396.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0049/0.3247, allocations: 3.251 MB / 400 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/0.3478, allocations: 11.91 MB / 411.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003588/0.3514, allocations: 3.66 MB / 415.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002107/0.3536, allocations: 1.247 MB / 416.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002692/0.3538, allocations: 129.1 kB / 417 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.977e-05/0.3539, allocations: 47.88 kB / 417 MB, free: 14.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.547e-06/0.3539, allocations: 0 / 417 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01471/0.3686, allocations: 7.312 MB / 424.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.3687, allocations: 76.7 kB / 424.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/0.3723, allocations: 2.06 MB / 426.5 MB, free: 4.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.3725, allocations: 53.7 kB / 426.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009809/0.3735, allocations: 1.368 MB / 427.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000477/0.374, allocations: 0.5094 MB / 428.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006447/0.3746, allocations: 351.2 kB / 428.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.073e-05/0.3747, allocations: 301.1 kB / 429 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.3762, allocations: 0.8705 MB / 429.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001763/0.378, allocations: 1.368 MB / 431.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002962/0.3809, allocations: 2.324 MB / 433.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.381, allocations: 8 kB / 433.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005788/0.3868, allocations: 3.271 MB / 436.9 MB, free: 9.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.3868, allocations: 12 kB / 436.9 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.3869, allocations: 14.94 kB / 436.9 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/0.3892, allocations: 0.8581 MB / 437.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.3906, allocations: 337.2 kB / 438.1 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01745/0.408, allocations: 20.59 MB / 458.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/0.41, allocations: 99.89 kB / 458.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003283/0.4104, allocations: 72 kB / 458.9 MB, free: 2.379 MB / 366.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.002021/0.4124, allocations: 0.9431 MB / 459.8 MB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006202/0.413, allocations: 213.4 kB / 460 MB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004732/0.4178, allocations: 2.634 MB / 462.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.4178, allocations: 16 kB / 462.7 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.744e-05/0.4178, allocations: 8 kB / 462.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.4179, allocations: 7.969 kB / 462.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.429, allocations: 5.912 MB / 468.6 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.429, allocations: 4 kB / 468.6 MB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.4298, allocations: 196.8 kB / 468.8 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/0.4318, allocations: 0.7409 MB / 469.5 MB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001271/0.432, allocations: 32 kB / 469.5 MB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/0.4477, allocations: 18.17 MB / 487.7 MB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/0.4477, allocations: 7.188 kB / 487.7 MB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/0.4543, allocations: 3.796 MB / 491.5 MB, free: 192 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.4558, allocations: 478.3 kB / 492 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007453/0.4566, allocations: 43.92 kB / 492 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.4582, allocations: 103.9 kB / 492.1 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004143/0.4586, allocations: 143.5 kB / 492.3 MB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/0.4588, allocations: 43.98 kB / 492.3 MB, free: 15.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002975/0.4618, allocations: 1.4 MB / 493.7 MB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4618, allocations: 0 / 493.7 MB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003814/0.4656, allocations: 0.6562 MB / 494.4 MB, free: 13.3 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.000622/0.4663, allocations: 212.5 kB / 494.6 MB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007355/0.4736, allocations: 4.251 MB / 498.8 MB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/0.4737, allocations: 0 / 498.8 MB, free: 8.773 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002844/0.4765, allocations: 2.205 MB / 0.4893 GB, free: 6.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004375/0.4809, allocations: 0.6741 MB / 0.4899 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/0.4938, allocations: 6.971 MB / 0.4968 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/0.4966, allocations: 2.249 MB / 0.499 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007443/0.4974, allocations: 147.4 kB / 0.4991 GB, free: 12.35 MB / 430.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4974, allocations: 4 kB / 0.4991 GB, free: 12.35 MB / 430.1 MB Notification: Performance of Templates: time 0.3131/0.8105, allocations: 187.8 MB / 0.6825 GB, free: 7.281 MB / 446.1 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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches