Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 62.78 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08298, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01012/0.09313, allocations: 9.116 MB / 366.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005525/0.09868, allocations: 3.182 MB / 369.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.09979, allocations: 43.81 kB / 369.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.1015, allocations: 0.6755 MB / 370.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.1036, allocations: 0.7066 MB / 371.3 MB, free: 200 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.152/0.2556, allocations: 309 kB / 371.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002772/0.2583, allocations: 2.125 MB / 373.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.2599, allocations: 1.422 MB / 375.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001117/0.261, allocations: 0.9295 MB / 376.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.2623, allocations: 1.147 MB / 377.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003178/0.2626, allocations: 232.6 kB / 377.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006542/0.2632, allocations: 327 kB / 377.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005702/0.2638, allocations: 0.6808 MB / 378.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008755/0.2647, allocations: 1.098 MB / 379.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002829/0.2675, allocations: 3.106 MB / 382.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2676, allocations: 0 / 382.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2676, allocations: 1.094 kB / 382.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.995e-05/0.2676, allocations: 0 / 382.7 MB, free: 8.531 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004016/0.2717, allocations: 2.295 MB / 385 MB, free: 7.176 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2717, allocations: 9.688 kB / 385 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002598/0.272, allocations: 241.2 kB / 385.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006313/0.2726, allocations: 232.1 kB / 385.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.2743, allocations: 1.2 MB / 386.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.513e-05/0.2743, allocations: 117.8 kB / 386.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002194/0.2746, allocations: 156.1 kB / 386.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002895/0.2775, allocations: 2.03 MB / 388.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.535e-05/0.2775, allocations: 10.95 kB / 388.9 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.2777, allocations: 69.69 kB / 389 MB, free: 5.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.998e-05/0.2778, allocations: 73.77 kB / 389.1 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.2803, allocations: 1.683 MB / 390.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007918/0.2882, allocations: 7.087 MB / 397.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007994/0.289, allocations: 482.9 kB / 398.3 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000423/0.2895, allocations: 276.8 kB / 398.6 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002062/0.2897, allocations: 114.9 kB / 398.7 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.2897, allocations: 38 kB / 398.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.174e-06/0.2897, allocations: 0 / 398.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.006594/0.2963, allocations: 3.027 MB / 401.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.2964, allocations: 59.97 kB / 401.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.2984, allocations: 1.628 MB / 403.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.2985, allocations: 37.7 kB / 403.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006713/0.2992, allocations: 1.03 MB / 404.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.2994, allocations: 243.6 kB / 404.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004153/0.2998, allocations: 323.1 kB / 405.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/0.2999, allocations: 301.1 kB / 405.4 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008665/0.3008, allocations: 0.5231 MB / 405.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.3022, allocations: 1.451 MB / 407.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002445/0.3047, allocations: 2.137 MB / 409.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.3047, allocations: 8 kB / 409.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003417/0.3081, allocations: 2.168 MB / 411.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.3081, allocations: 16 kB / 411.7 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.152e-05/0.3082, allocations: 36 kB / 411.7 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005618/0.3088, allocations: 230.7 kB / 411.9 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.3099, allocations: 395.3 kB / 412.3 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/0.3116, allocations: 1.847 MB / 414.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.3129, allocations: 151.3 kB / 414.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.313, allocations: 92 kB / 414.4 MB, free: 15.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008143/0.3138, allocations: 0.5962 MB / 415 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.3141, allocations: 154.1 kB / 415.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.316, allocations: 1.086 MB / 416.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.316, allocations: 8 kB / 416.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.316, allocations: 0 / 416.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.316, allocations: 11.92 kB / 416.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004293/0.3203, allocations: 2.774 MB / 419 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.3203, allocations: 3.938 kB / 419 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.3209, allocations: 120 kB / 419.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/0.3213, allocations: 170.4 kB / 419.3 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.251e-05/0.3213, allocations: 16 kB / 419.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.3229, allocations: 1.781 MB / 421.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3229, allocations: 0 / 421.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.3253, allocations: 1.635 MB / 422.8 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004884/0.3258, allocations: 303.1 kB / 423 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.326, allocations: 12 kB / 423.1 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.3267, allocations: 51.94 kB / 423.1 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.3268, allocations: 52.38 kB / 423.2 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.3269, allocations: 23.98 kB / 423.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001441/0.3283, allocations: 1.079 MB / 424.3 MB, free: 4.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3283, allocations: 0 / 424.3 MB, free: 4.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001381/0.3297, allocations: 368 kB / 424.6 MB, free: 4.484 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.002963/0.3327, allocations: 2.242 MB / 426.9 MB, free: 2.184 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002885/0.3356, allocations: 1.756 MB / 428.6 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.3356, allocations: 12.11 kB / 428.6 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.3367, allocations: 0.7515 MB / 429.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/0.3384, allocations: 421.2 kB / 429.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01963/0.3581, allocations: 16.44 MB / 446.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009967/0.3591, allocations: 1.469 MB / 447.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00108/0.3602, allocations: 354 kB / 448 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007802/0.361, allocations: 0.6321 MB / 448.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.361, allocations: 0 / 448.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06831/0.4293, allocations: 34.85 MB / 483.5 MB, free: 8.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.731/10.16, allocations: 15.86 kB / 483.5 MB, free: 8.117 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.32 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches