Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 114.3 kB / 16.63 MB, free: 6.812 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.001454/0.001454, allocations: 190 kB / 17.55 MB, free: 5.934 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.278/1.278, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 48.73 kB / 300.2 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08114/0.08219, allocations: 49.46 MB / 349.7 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.008823/0.09103, allocations: 8.921 MB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004468/0.09552, allocations: 3.127 MB / 361.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005505/0.09609, allocations: 43.81 kB / 361.8 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.09737, allocations: 0.5984 MB / 362.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.09869, allocations: 0.6216 MB / 363 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005274/0.09923, allocations: 295.7 kB / 363.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00168/0.1009, allocations: 2.086 MB / 365.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.1023, allocations: 1.433 MB / 366.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009075/0.1032, allocations: 0.9186 MB / 367.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.1043, allocations: 1.152 MB / 368.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002333/0.1045, allocations: 228 kB / 369.1 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.105, allocations: 319.8 kB / 369.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005096/0.1055, allocations: 0.6817 MB / 370.1 MB, free: 88 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1327/0.2382, allocations: 1.077 MB / 371.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002795/0.2411, allocations: 3.073 MB / 374.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2411, allocations: 0.5625 kB / 374.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2411, allocations: 0.5 kB / 374.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.053e-05/0.2411, allocations: 0 / 374.3 MB, free: 12.82 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.003831/0.245, allocations: 2.266 MB / 376.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.245, allocations: 8.812 kB / 376.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002755/0.2453, allocations: 235.1 kB / 376.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/0.2459, allocations: 226.4 kB / 377 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.2479, allocations: 1.179 MB / 378.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.2481, allocations: 118.2 kB / 378.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.2484, allocations: 161.9 kB / 378.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004208/0.2526, allocations: 2.002 MB / 380.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.356e-05/0.2527, allocations: 10.75 kB / 380.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.2529, allocations: 64.44 kB / 380.5 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.253, allocations: 75.25 kB / 380.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003522/0.2565, allocations: 1.651 MB / 382.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01075/0.2673, allocations: 6.934 MB / 389.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000998/0.2683, allocations: 452.9 kB / 389.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005138/0.2689, allocations: 259 kB / 389.9 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.2691, allocations: 115 kB / 390 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2692, allocations: 46.12 kB / 390 MB, free: 5.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.945e-06/0.2692, allocations: 3.188 kB / 390 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.009302/0.2785, allocations: 3.286 MB / 393.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002573/0.2811, allocations: 2.329 MB / 395.6 MB, free: 1.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/0.2837, allocations: 1.619 MB / 397.3 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.2838, allocations: 37.58 kB / 397.3 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.2844, allocations: 1.021 MB / 398.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.2846, allocations: 236.1 kB / 398.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000433/0.2851, allocations: 321.9 kB / 398.9 MB, free: 15.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.2852, allocations: 301.1 kB / 399.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/0.2859, allocations: 0.5157 MB / 399.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.2872, allocations: 1.469 MB / 401.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.2893, allocations: 2.137 MB / 403.3 MB, free: 11.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.046e-05/0.2894, allocations: 11.75 kB / 403.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003207/0.2926, allocations: 2.165 MB / 405.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.2926, allocations: 16 kB / 405.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.961e-05/0.2927, allocations: 36 kB / 405.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005193/0.2932, allocations: 226.7 kB / 405.7 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.2943, allocations: 398.8 kB / 406.1 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.2959, allocations: 1.841 MB / 408 MB, free: 7.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/0.2973, allocations: 143.4 kB / 408.1 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.2975, allocations: 99.98 kB / 408.2 MB, free: 7.367 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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.0008641/0.2983, allocations: 0.585 MB / 408.8 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.2986, allocations: 150.1 kB / 408.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001988/0.3006, allocations: 1.115 MB / 410 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.3007, allocations: 15.92 kB / 410.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3007, allocations: 0 / 410.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3007, allocations: 2.875 kB / 410.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005322/0.306, allocations: 3.402 MB / 413.5 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.306, allocations: 4 kB / 413.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004098/0.3064, allocations: 110.9 kB / 413.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005996/0.3071, allocations: 234.8 kB / 413.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.763e-05/0.3071, allocations: 16 kB / 413.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003809/0.3109, allocations: 4.062 MB / 417.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002028/0.313, allocations: 2.164 MB / 420 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.3155, allocations: 1.742 MB / 421.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006325/0.3161, allocations: 311.2 kB / 422.1 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000312/0.3164, allocations: 19.94 kB / 422.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007701/0.3172, allocations: 51.94 kB / 422.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.3174, allocations: 64.47 kB / 422.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.3174, allocations: 23.98 kB / 422.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001589/0.319, allocations: 1.066 MB / 423.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.319, allocations: 0.9375 kB / 423.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001681/0.3207, allocations: 380 kB / 423.7 MB, free: 7.312 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002802/0.3235, allocations: 2.375 MB / 426.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.3261, allocations: 1.713 MB / 427.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3262, allocations: 0 / 427.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.3273, allocations: 0.848 MB / 428.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.3292, allocations: 411.8 kB / 429 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/0.355, allocations: 17.31 MB / 446.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.3562, allocations: 1.469 MB / 447.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00103/0.3572, allocations: 350 kB / 448.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007617/0.358, allocations: 0.6203 MB / 448.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.358, allocations: 0 / 448.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07828/0.4363, allocations: 35.52 MB / 484.3 MB, free: 9.41 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003071/0.4366, allocations: 262.2 kB / 484.5 MB, free: 9.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.627/3.063, allocations: 0 / 484.5 MB, free: 9.098 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches