Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008805/0.0008806, allocations: 95.12 kB / 296.8 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002605, allocations: 4 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2077, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.007351/0.2151, allocations: 10.12 MB / 418.2 MB, free: 17.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005413/0.2206, allocations: 3.391 MB / 421.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001845/0.2225, allocations: 63.69 kB / 421.6 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.224, allocations: 0.6796 MB / 422.3 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002073/0.2261, allocations: 0.8235 MB / 423.1 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006593/0.2268, allocations: 275.6 kB / 423.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002797/0.2296, allocations: 3.99 MB / 427.4 MB, free: 8.312 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.2316, allocations: 2.389 MB / 429.8 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.233, allocations: 1.237 MB / 431 MB, free: 4.617 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.2344, allocations: 1.619 MB / 432.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.2347, allocations: 184 kB / 432.8 MB, free: 2.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005774/0.2352, allocations: 283.8 kB / 433.1 MB, free: 2.535 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005888/0.2358, allocations: 0.9112 MB / 434 MB, free: 1.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001168/0.237, allocations: 1.565 MB / 435.6 MB, free: 44 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003572/0.2406, allocations: 4.414 MB / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2406, allocations: 0 / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.2406, allocations: 0 / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001028/0.2407, allocations: 3.938 kB / 440 MB, free: 11.61 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.005464/0.2462, allocations: 3.229 MB / 443.2 MB, free: 8.316 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2462, allocations: 12.03 kB / 443.2 MB, free: 8.305 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008207/0.2471, allocations: 388.6 kB / 443.6 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.25, allocations: 1.993 MB / 445.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001396/0.2502, allocations: 214.1 kB / 445.8 MB, free: 5.664 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003635/0.2505, allocations: 287.8 kB / 446.1 MB, free: 5.383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005647/0.2562, allocations: 3.842 MB / 449.9 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.745e-05/0.2563, allocations: 7.938 kB / 449.9 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00025/0.2565, allocations: 116 kB / 450 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.2567, allocations: 125.5 kB / 450.2 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005085/0.2617, allocations: 3.23 MB / 453.4 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01724/0.279, allocations: 11.98 MB / 465.4 MB, free: 1.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003077/0.2821, allocations: 3.648 MB / 469 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/0.284, allocations: 1.248 MB / 470.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002585/0.2843, allocations: 122.4 kB / 470.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/0.2844, allocations: 55.81 kB / 470.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.206e-06/0.2844, allocations: 0 / 470.5 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01329/0.2977, allocations: 7.343 MB / 477.8 MB, free: 4.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.2977, allocations: 72.72 kB / 477.9 MB, free: 4.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002765/0.3005, allocations: 2.048 MB / 479.9 MB, free: 2.379 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.3006, allocations: 57.64 kB / 480 MB, free: 2.316 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009037/0.3015, allocations: 1.378 MB / 481.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000388/0.3019, allocations: 0.5083 MB / 481.9 MB, free: 416 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.302, allocations: 40 kB / 481.9 MB, free: 376 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3022, allocations: 377.9 kB / 482.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.3035, allocations: 0.8627 MB / 483.1 MB, free: 15.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.3052, allocations: 1.369 MB / 484.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002949/0.3081, allocations: 2.311 MB / 486.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3081, allocations: 8 kB / 486.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005305/0.3135, allocations: 3.266 MB / 490.1 MB, free: 7.699 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.3135, allocations: 16.03 kB / 490.1 MB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.749e-05/0.3135, allocations: 16 kB / 490.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.3157, allocations: 0.8499 MB / 491 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.3169, allocations: 343.4 kB / 491.3 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/0.3331, allocations: 18.83 MB / 0.4982 GB, free: 2.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.3346, allocations: 103.9 kB / 0.4983 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/0.3349, allocations: 71.98 kB / 0.4983 GB, free: 1.98 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 (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 initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001774/0.3367, allocations: 0.9484 MB / 0.4993 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.3372, allocations: 213.4 kB / 0.4995 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1624/0.4996, allocations: 2.619 MB / 0.502 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.4997, allocations: 14.34 kB / 0.502 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.4997, allocations: 7.344 kB / 0.502 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.4997, allocations: 10.95 kB / 0.5021 GB, free: 88.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008181/0.5079, allocations: 5.91 MB / 0.5078 GB, free: 86.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.5079, allocations: 3.938 kB / 0.5078 GB, free: 86.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/0.5087, allocations: 197.9 kB / 0.508 GB, free: 86.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.5103, allocations: 0.736 MB / 0.5087 GB, free: 86.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.228e-05/0.5104, allocations: 35.41 kB / 0.5088 GB, free: 86.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009715/0.5201, allocations: 16.71 MB / 0.5251 GB, free: 72.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5201, allocations: 7.812 kB / 0.5251 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004577/0.5247, allocations: 3.793 MB / 0.5288 GB, free: 69.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008828/0.5256, allocations: 484.4 kB / 0.5293 GB, free: 69.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002423/0.5258, allocations: 35.98 kB / 0.5293 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009622/0.5268, allocations: 112.1 kB / 0.5294 GB, free: 68.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.5271, allocations: 141 kB / 0.5295 GB, free: 68.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.014e-05/0.5272, allocations: 48 kB / 0.5296 GB, free: 68.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001642/0.5288, allocations: 1.388 MB / 0.5309 GB, free: 67.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5288, allocations: 2.344 kB / 0.5309 GB, free: 67.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001863/0.5307, allocations: 0.6587 MB / 0.5316 GB, free: 66.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000316/0.531, allocations: 204.2 kB / 0.5318 GB, free: 66.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003518/0.5346, allocations: 3.434 MB / 0.5351 GB, free: 62.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.5346, allocations: 4 kB / 0.5351 GB, free: 62.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.5365, allocations: 2.201 MB / 0.5373 GB, free: 60.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00341/0.5399, allocations: 0.6548 MB / 0.5379 GB, free: 59.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00699/0.5469, allocations: 6.751 MB / 0.5445 GB, free: 53.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001429/0.5484, allocations: 2.247 MB / 0.5467 GB, free: 50.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004968/0.5489, allocations: 143.4 kB / 0.5469 GB, free: 50.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5489, allocations: 0 / 0.5469 GB, free: 50.77 MB / 378.7 MB Notification: Performance of Templates: time 0.3065/0.8554, allocations: 187.5 MB / 0.73 GB, free: 113.9 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches