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.001083/0.001083, allocations: 108 kB / 16.92 MB, free: 6.145 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.001264/0.001264, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.311/1.311, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009827/0.0009827, allocations: 51.23 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08445/0.08545, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01209/0.09759, allocations: 11.41 MB / 361.6 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00665/0.1043, allocations: 3.551 MB / 365.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.1054, allocations: 67.69 kB / 365.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001865/0.1073, allocations: 0.8306 MB / 366 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002128/0.1095, allocations: 0.92 MB / 367 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008141/0.1103, allocations: 435.5 kB / 367.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1445/0.2548, allocations: 3.731 MB / 371.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003235/0.2581, allocations: 2.868 MB / 374 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002805/0.2609, allocations: 1.647 MB / 375.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003485/0.2644, allocations: 1.965 MB / 377.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001454/0.2659, allocations: 418.7 kB / 378 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.2676, allocations: 0.4923 MB / 378.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.269, allocations: 1.198 MB / 379.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002699/0.2717, allocations: 1.94 MB / 381.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004584/0.2763, allocations: 5.479 MB / 387.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2763, allocations: 0 / 387.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2763, allocations: 1.344 kB / 387.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.619e-05/0.2764, allocations: 0 / 387.1 MB, free: 7.18 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.006468/0.2829, allocations: 3.817 MB / 390.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.283, allocations: 8.438 kB / 390.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004381/0.2834, allocations: 412.4 kB / 391.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008898/0.2843, allocations: 396 kB / 391.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.287, allocations: 1.984 MB / 393.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.2872, allocations: 218 kB / 393.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/0.2875, allocations: 285 kB / 394.2 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004828/0.2923, allocations: 3.861 MB / 398.1 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.955e-05/0.2924, allocations: 7.094 kB / 398.1 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002426/0.2927, allocations: 118.2 kB / 398.2 MB, free: 320 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.1e-05/0.2928, allocations: 120.1 kB / 398.3 MB, free: 304 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00483/0.2976, allocations: 3.253 MB / 401.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.3147, allocations: 11.91 MB / 413.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00312/0.3178, allocations: 3.666 MB / 417.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/0.3198, allocations: 1.238 MB / 418.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002417/0.3201, allocations: 122.4 kB / 418.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.3201, allocations: 55.86 kB / 418.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.146e-06/0.3201, allocations: 0 / 418.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01391/0.3341, allocations: 7.315 MB / 425.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.3341, allocations: 68.72 kB / 425.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002879/0.337, allocations: 2.064 MB / 428 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.3371, allocations: 53.7 kB / 428 MB, free: 2.477 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000921/0.3381, allocations: 1.373 MB / 429.4 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/0.3385, allocations: 0.502 MB / 429.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005331/0.339, allocations: 351.2 kB / 430.3 MB, free: 256 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3391, allocations: 306.8 kB / 430.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.3404, allocations: 0.8666 MB / 431.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.3421, allocations: 1.365 MB / 432.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.345, allocations: 2.333 MB / 435.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.345, allocations: 4 kB / 435.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005578/0.3506, allocations: 3.276 MB / 438.4 MB, free: 7.805 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/0.3506, allocations: 12 kB / 438.4 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/0.3507, allocations: 12 kB / 438.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/0.3531, allocations: 0.8522 MB / 439.3 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3544, allocations: 347.7 kB / 439.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.018/0.3724, allocations: 20.59 MB / 460.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.3743, allocations: 95.83 kB / 460.3 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/0.3744, allocations: 76 kB / 460.4 MB, free: 404 kB / 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.001653/0.3761, allocations: 0.9385 MB / 461.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/0.3765, allocations: 221.3 kB / 461.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.3808, allocations: 2.626 MB / 464.2 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.3808, allocations: 20.08 kB / 464.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3808, allocations: 11.94 kB / 464.2 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.3809, allocations: 3.984 kB / 464.2 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00908/0.3899, allocations: 5.905 MB / 470.1 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.39, allocations: 0 / 470.1 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.3908, allocations: 202.5 kB / 470.3 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.3926, allocations: 0.7392 MB / 471 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-05/0.3927, allocations: 35.98 kB / 471.1 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/0.4075, allocations: 18.16 MB / 489.2 MB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.4076, allocations: 4 kB / 489.2 MB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005854/0.4134, allocations: 3.809 MB / 493 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/0.4146, allocations: 482.3 kB / 493.5 MB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/0.4149, allocations: 39.92 kB / 493.5 MB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.416, allocations: 103.9 kB / 493.7 MB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003226/0.4164, allocations: 139.8 kB / 493.8 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.345e-05/0.4165, allocations: 44 kB / 493.8 MB, free: 13.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.4185, allocations: 1.4 MB / 495.2 MB, free: 11.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4186, allocations: 4 kB / 495.2 MB, free: 11.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002323/0.4209, allocations: 0.6562 MB / 495.9 MB, free: 11.31 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.00591/0.4268, allocations: 4.456 MB / 0.4886 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006647/0.4335, allocations: 4.247 MB / 0.4928 GB, free: 2.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.988e-06/0.4335, allocations: 4 kB / 0.4928 GB, free: 2.441 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002583/0.4361, allocations: 2.205 MB / 0.4949 GB, free: 144 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/0.4392, allocations: 0.6833 MB / 0.4956 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03366/0.4728, allocations: 25.29 MB / 0.5203 GB, free: 4.289 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/0.4748, allocations: 2.288 MB / 0.5225 GB, free: 1.973 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001478/0.4763, allocations: 498.7 kB / 0.523 GB, free: 1.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001241/0.4776, allocations: 1.081 MB / 0.5241 GB, free: 408 kB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4776, allocations: 0 / 0.5241 GB, free: 408 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.318/0.7956, allocations: 60.61 MB / 0.5832 GB, free: 112.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/11.04, allocations: 7.875 kB / 0.5833 GB, free: 112.7 MB / 446.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