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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 112 kB / 17.07 MB, free: 5.945 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.001701/0.001701, allocations: 196 kB / 18.01 MB, free: 5.035 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.307/1.307, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009744/0.0009744, allocations: 47.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2304, allocations: 49.43 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01214/0.2426, allocations: 11.42 MB / 411.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006279/0.2489, allocations: 3.544 MB / 415.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0015/0.2504, allocations: 63.75 kB / 415.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002165/0.2526, allocations: 0.8306 MB / 416.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002798/0.2554, allocations: 0.924 MB / 417 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.2566, allocations: 443.4 kB / 417.5 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004264/0.2609, allocations: 3.74 MB / 421.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003644/0.2646, allocations: 2.869 MB / 424.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.2669, allocations: 1.647 MB / 425.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002832/0.2697, allocations: 1.965 MB / 427.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000915/0.2706, allocations: 420 kB / 428.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.272, allocations: 0.4998 MB / 428.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001532/0.2735, allocations: 1.2 MB / 429.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002995/0.2765, allocations: 1.937 MB / 431.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005478/0.282, allocations: 5.541 MB / 437.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2821, allocations: 3.938 kB / 437.3 MB, free: 3.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2821, allocations: 4 kB / 437.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001071/0.2822, allocations: 0 / 437.3 MB, free: 3.57 MB / 350.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.007548/0.2898, allocations: 3.805 MB / 441.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.2898, allocations: 16.03 kB / 441.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006476/0.2905, allocations: 413 kB / 441.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.2915, allocations: 396.5 kB / 441.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004058/0.2956, allocations: 2.04 MB / 443.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.2958, allocations: 217.8 kB / 444.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005518/0.2963, allocations: 287.9 kB / 444.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007292/0.3036, allocations: 3.861 MB / 448.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.456e-05/0.3038, allocations: 7.906 kB / 448.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003601/0.3041, allocations: 124 kB / 448.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.3043, allocations: 121.5 kB / 448.5 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006155/0.3104, allocations: 3.25 MB / 451.8 MB, free: 4.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0198/0.3303, allocations: 11.78 MB / 463.6 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003283/0.3336, allocations: 3.668 MB / 467.2 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002136/0.3357, allocations: 1.244 MB / 468.5 MB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002501/0.336, allocations: 126.4 kB / 468.6 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3361, allocations: 51.88 kB / 468.7 MB, free: 3.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 3.557e-06/0.3361, allocations: 4 kB / 468.7 MB, free: 3.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01454/0.3506, allocations: 7.32 MB / 476 MB, free: 11.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3507, allocations: 64.72 kB / 476 MB, free: 11.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003261/0.354, allocations: 2.06 MB / 478.1 MB, free: 9.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001555/0.3541, allocations: 53.7 kB / 478.2 MB, free: 9.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009731/0.3551, allocations: 1.366 MB / 479.5 MB, free: 7.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.3556, allocations: 0.5122 MB / 480 MB, free: 7.477 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000569/0.3561, allocations: 347.2 kB / 480.4 MB, free: 7.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.193e-05/0.3562, allocations: 301.1 kB / 480.7 MB, free: 6.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.3576, allocations: 0.8705 MB / 481.5 MB, free: 5.961 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001727/0.3594, allocations: 1.365 MB / 482.9 MB, free: 4.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/0.3625, allocations: 2.33 MB / 485.2 MB, free: 1.852 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/0.3625, allocations: 7.938 kB / 485.2 MB, free: 1.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00578/0.3683, allocations: 3.269 MB / 488.5 MB, free: 14.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/0.3684, allocations: 12 kB / 488.5 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.3684, allocations: 16 kB / 488.5 MB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002381/0.3708, allocations: 0.8526 MB / 489.4 MB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3721, allocations: 343.4 kB / 489.7 MB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01822/0.3903, allocations: 20.58 MB / 0.4983 GB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.3922, allocations: 95.83 kB / 0.4984 GB, free: 7.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000277/0.3925, allocations: 79.98 kB / 0.4985 GB, free: 6.969 MB / 430.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.001854/0.3943, allocations: 0.9426 MB / 0.4994 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006062/0.3949, allocations: 217.4 kB / 0.4996 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004702/0.3996, allocations: 2.633 MB / 0.5022 GB, free: 3.105 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.3997, allocations: 16 kB / 0.5022 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.236e-05/0.3997, allocations: 12 kB / 0.5022 GB, free: 3.078 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.3997, allocations: 7.969 kB / 0.5022 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.4105, allocations: 5.867 MB / 0.508 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.4106, allocations: 3.938 kB / 0.508 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.4114, allocations: 199.7 kB / 0.5082 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.4133, allocations: 0.7269 MB / 0.5089 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.4134, allocations: 35.98 kB / 0.5089 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/0.4281, allocations: 18.15 MB / 0.5266 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.4281, allocations: 4 kB / 0.5266 GB, free: 8.48 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006002/0.4341, allocations: 3.802 MB / 0.5304 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.4354, allocations: 482.2 kB / 0.5308 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004289/0.4358, allocations: 36 kB / 0.5309 GB, free: 4.031 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.4371, allocations: 107.9 kB / 0.531 GB, free: 3.926 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.4375, allocations: 145 kB / 0.5311 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.4376, allocations: 44 kB / 0.5311 GB, free: 3.742 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002665/0.4403, allocations: 1.4 MB / 0.5325 GB, free: 2.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4403, allocations: 0 / 0.5325 GB, free: 2.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002732/0.443, allocations: 0.664 MB / 0.5332 GB, free: 1.656 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.2007/0.6438, allocations: 4.457 MB / 0.5375 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004064/0.6479, allocations: 3.454 MB / 0.5409 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.6479, allocations: 3.312 kB / 0.5409 GB, free: 126.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001951/0.6499, allocations: 2.201 MB / 0.543 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002839/0.6527, allocations: 0.6755 MB / 0.5437 GB, free: 124.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/0.6794, allocations: 22.52 MB / 0.5657 GB, free: 108.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/0.6813, allocations: 2.284 MB / 0.5679 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.6825, allocations: 0.4958 MB / 0.5684 GB, free: 105.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.6836, allocations: 1.081 MB / 0.5694 GB, free: 104.7 MB / 462.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6836, allocations: 0 / 0.5694 GB, free: 104.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09768/0.7813, allocations: 59.66 MB / 0.6277 GB, free: 45.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.27, allocations: 15.66 kB / 0.6277 GB, free: 45.72 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > 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.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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches