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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.245, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01207/0.2571, allocations: 11.46 MB / 420.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006495/0.2636, allocations: 3.59 MB / 423.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001387/0.2651, allocations: 67.69 kB / 423.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.2672, allocations: 0.897 MB / 424.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002415/0.2696, allocations: 0.9786 MB / 425.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000841/0.2705, allocations: 431.4 kB / 426.2 MB, free: 72 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003701/0.2742, allocations: 3.763 MB / 429.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003001/0.2772, allocations: 2.869 MB / 432.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.2794, allocations: 1.666 MB / 434.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002425/0.2819, allocations: 1.969 MB / 436.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005446/0.2824, allocations: 420 kB / 436.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009145/0.2833, allocations: 0.5037 MB / 437.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.2844, allocations: 1.196 MB / 438.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002204/0.2866, allocations: 1.941 MB / 440.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00563/0.2923, allocations: 5.563 MB / 446.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2923, allocations: 0 / 446.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2923, allocations: 0 / 446.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001196/0.2924, allocations: 0 / 446.1 MB, free: 12.06 MB / 366.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.007408/0.2999, allocations: 3.919 MB / 450 MB, free: 8.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2999, allocations: 8.031 kB / 450 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004949/0.3004, allocations: 413 kB / 450.4 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009444/0.3014, allocations: 406.6 kB / 450.8 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/0.3051, allocations: 2.077 MB / 452.9 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.3053, allocations: 213.8 kB / 453.1 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004326/0.3057, allocations: 284 kB / 453.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005874/0.3116, allocations: 3.861 MB / 457.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.989e-05/0.3117, allocations: 11.89 kB / 457.2 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.312, allocations: 120 kB / 457.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.3121, allocations: 121.5 kB / 457.5 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004986/0.3171, allocations: 3.246 MB / 460.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01944/0.3365, allocations: 11.82 MB / 472.5 MB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003302/0.3399, allocations: 3.648 MB / 476.2 MB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00217/0.3421, allocations: 1.244 MB / 477.4 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002782/0.3424, allocations: 126.4 kB / 477.5 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.3425, allocations: 47.88 kB / 477.6 MB, free: 11.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 5.35e-06/0.3425, allocations: 0 / 477.6 MB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01486/0.3573, allocations: 7.391 MB / 485 MB, free: 3.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.3574, allocations: 68.72 kB / 485 MB, free: 3.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003683/0.3611, allocations: 2.06 MB / 487.1 MB, free: 1.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.3614, allocations: 49.7 kB / 487.2 MB, free: 1.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.3625, allocations: 1.413 MB / 488.6 MB, free: 244 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006161/0.3631, allocations: 0.5308 MB / 489.1 MB, free: 15.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007673/0.3639, allocations: 351.4 kB / 489.4 MB, free: 15.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.364, allocations: 309.1 kB / 489.7 MB, free: 15.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001495/0.3655, allocations: 0.8705 MB / 490.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.3673, allocations: 1.369 MB / 492 MB, free: 12.6 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003136/0.3704, allocations: 2.326 MB / 494.3 MB, free: 10.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-05/0.3705, allocations: 7.75 kB / 494.3 MB, free: 10.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005931/0.3764, allocations: 3.282 MB / 497.6 MB, free: 6.715 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/0.3765, allocations: 12.5 kB / 497.6 MB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.548e-05/0.3765, allocations: 16 kB / 497.6 MB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/0.3789, allocations: 0.8482 MB / 498.5 MB, free: 5.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.3802, allocations: 347.4 kB / 498.8 MB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01822/0.3985, allocations: 20.59 MB / 0.5072 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00188/0.4004, allocations: 91.88 kB / 0.5073 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002755/0.4007, allocations: 76 kB / 0.5074 GB, free: 15.18 MB / 446.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.001782/0.4025, allocations: 0.9476 MB / 0.5083 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005741/0.4031, allocations: 234.6 kB / 0.5085 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004521/0.4076, allocations: 2.637 MB / 0.5111 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.4076, allocations: 19.98 kB / 0.5111 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.339e-05/0.4077, allocations: 8 kB / 0.5111 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.4077, allocations: 3.984 kB / 0.5111 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.4182, allocations: 5.867 MB / 0.5169 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4183, allocations: 480 / 0.5169 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007943/0.4191, allocations: 207.7 kB / 0.5171 GB, free: 5.004 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001874/0.421, allocations: 0.7343 MB / 0.5178 GB, free: 4.238 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4211, allocations: 35.98 kB / 0.5178 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/0.4361, allocations: 18.16 MB / 0.5356 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.4362, allocations: 7.938 kB / 0.5356 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1889/0.625, allocations: 3.802 MB / 0.5393 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.6262, allocations: 493.5 kB / 0.5397 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/0.6265, allocations: 35.56 kB / 0.5398 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6276, allocations: 104.4 kB / 0.5399 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000312/0.6279, allocations: 145.3 kB / 0.54 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.35e-05/0.628, allocations: 40.34 kB / 0.5401 GB, free: 120.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001704/0.6297, allocations: 1.41 MB / 0.5414 GB, free: 120.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6297, allocations: 2.188 kB / 0.5414 GB, free: 120.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00229/0.632, allocations: 0.6623 MB / 0.5421 GB, free: 120.7 MB / 462.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.004672/0.6367, allocations: 4.458 MB / 0.5464 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.6409, allocations: 3.466 MB / 0.5498 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.6409, allocations: 0 / 0.5498 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.6432, allocations: 2.207 MB / 0.552 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002943/0.6461, allocations: 0.6892 MB / 0.5527 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02762/0.6738, allocations: 22.63 MB / 0.5747 GB, free: 93.87 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/0.6753, allocations: 2.292 MB / 0.577 GB, free: 91.55 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001267/0.6766, allocations: 0.491 MB / 0.5775 GB, free: 91.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.6776, allocations: 1.089 MB / 0.5785 GB, free: 89.97 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.6776, allocations: 0 / 0.5785 GB, free: 89.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1009/0.7785, allocations: 59.78 MB / 0.6369 GB, free: 30.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/14.86, allocations: 8.234 kB / 0.6369 GB, free: 30.83 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv","/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