Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",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.001409/0.001409, allocations: 105.8 kB / 16.92 MB, free: 5.738 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.001647/0.001647, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.37/1.37, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001747/0.001747, allocations: 44.44 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1017, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01201/0.1137, allocations: 11.46 MB / 361.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.1199, allocations: 3.881 MB / 365.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.121, allocations: 63.75 kB / 365.6 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001761/0.1228, allocations: 0.8345 MB / 366.4 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.1249, allocations: 0.9355 MB / 367.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009742/0.1259, allocations: 0.5077 MB / 367.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1469/0.2728, allocations: 3.193 MB / 371 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003051/0.2759, allocations: 2.582 MB / 373.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.2779, allocations: 1.422 MB / 375 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002533/0.2804, allocations: 1.819 MB / 376.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006207/0.281, allocations: 387.5 kB / 377.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.2822, allocations: 0.6161 MB / 377.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009636/0.2832, allocations: 1.072 MB / 378.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001808/0.285, allocations: 1.722 MB / 380.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004709/0.2897, allocations: 4.98 MB / 385.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.2898, allocations: 0 / 385.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2898, allocations: 0 / 385.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001368/0.2899, allocations: 4.406 kB / 385.6 MB, free: 8.02 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008607/0.2985, allocations: 3.482 MB / 389.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.2986, allocations: 10.31 kB / 389.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005166/0.2991, allocations: 367.7 kB / 389.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001508/0.3006, allocations: 407.3 kB / 389.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003728/0.3044, allocations: 1.784 MB / 391.7 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.3046, allocations: 192.8 kB / 391.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004396/0.305, allocations: 255.9 kB / 392.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005318/0.3103, allocations: 3.247 MB / 395.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.124e-05/0.3104, allocations: 3.125 kB / 395.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.3106, allocations: 103.6 kB / 395.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/0.3108, allocations: 118.3 kB / 395.6 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004138/0.3149, allocations: 2.709 MB / 398.3 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01655/0.3315, allocations: 10.37 MB / 408.6 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/0.3338, allocations: 1.788 MB / 410.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.3356, allocations: 1.049 MB / 411.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/0.3359, allocations: 211.1 kB / 411.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.69e-05/0.336, allocations: 43.56 kB / 411.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.627e-06/0.336, allocations: 0 / 411.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01985/0.3559, allocations: 7.418 MB / 419.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.3559, allocations: 64.72 kB / 419.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003369/0.3593, allocations: 1.873 MB / 421.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.3595, allocations: 45.7 kB / 421.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000935/0.3604, allocations: 1.251 MB / 422.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004794/0.3609, allocations: 462.8 kB / 422.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005543/0.3615, allocations: 299.3 kB / 423.1 MB, free: 7.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.415e-05/0.3616, allocations: 305.1 kB / 423.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.3631, allocations: 0.8156 MB / 424.2 MB, free: 6.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.3649, allocations: 1.304 MB / 425.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/0.3683, allocations: 2.256 MB / 427.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.3684, allocations: 4 kB / 427.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005112/0.3735, allocations: 2.802 MB / 430.6 MB, free: 108 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/0.3735, allocations: 12.56 kB / 430.6 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.3736, allocations: 16 kB / 430.6 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.3746, allocations: 423.7 kB / 431.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.3762, allocations: 403.8 kB / 431.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006091/0.3823, allocations: 5.796 MB / 437.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.3841, allocations: 119.8 kB / 437.4 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/0.3843, allocations: 71.98 kB / 437.4 MB, free: 9.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001559/0.3859, allocations: 0.7938 MB / 438.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006956/0.3866, allocations: 193.7 kB / 438.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004498/0.3911, allocations: 2.388 MB / 440.8 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/0.3912, allocations: 16 kB / 440.8 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.3912, allocations: 4 kB / 440.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.3912, allocations: 11.91 kB / 440.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009756/0.401, allocations: 5.279 MB / 446.1 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/0.401, allocations: 4 kB / 446.1 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.4021, allocations: 256.5 kB / 446.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001263/0.4034, allocations: 464.5 kB / 446.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.4035, allocations: 43.97 kB / 446.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007548/0.4111, allocations: 7.336 MB / 454.2 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4111, allocations: 11.56 kB / 454.2 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005861/0.417, allocations: 3.568 MB / 457.8 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009997/0.418, allocations: 446.6 kB / 458.2 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000436/0.4184, allocations: 36 kB / 458.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.4198, allocations: 99.88 kB / 458.3 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.42, allocations: 112 kB / 458.5 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.4201, allocations: 39.98 kB / 458.5 MB, free: 3.438 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002034/0.4222, allocations: 1.291 MB / 459.8 MB, free: 2.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4222, allocations: 4 kB / 459.8 MB, free: 2.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002099/0.4243, allocations: 0.5423 MB / 460.3 MB, free: 1.613 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,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.006297/0.4306, allocations: 4.247 MB / 464.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005533/0.4361, allocations: 2.987 MB / 467.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4362, allocations: 3.938 kB / 467.6 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002531/0.4387, allocations: 1.507 MB / 469.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.4411, allocations: 454.3 kB / 469.5 MB, free: 8.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03531/0.4764, allocations: 22.74 MB / 492.3 MB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/0.4786, allocations: 2.002 MB / 494.3 MB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001477/0.48, allocations: 431.6 kB / 494.7 MB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001405/0.4815, allocations: 0.9952 MB / 495.7 MB, free: 12.46 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4815, allocations: 0 / 495.7 MB, free: 12.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2249/0.7064, allocations: 47.8 MB / 0.5307 GB, free: 151.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.775/10.48, allocations: 12.66 kB / 0.5307 GB, free: 151.4 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches