Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.001107/0.001107, allocations: 105.6 kB / 16.62 MB, free: 6.809 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.001139/0.001138, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 50.95 kB / 300.2 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09359, allocations: 49.45 MB / 349.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01306/0.1067, allocations: 10.83 MB / 360.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007007/0.1137, allocations: 3.559 MB / 364.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.1154, allocations: 63.69 kB / 364.1 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.1178, allocations: 0.7187 MB / 364.9 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002947/0.1208, allocations: 0.7732 MB / 365.6 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001317/0.1221, allocations: 407.6 kB / 366 MB, free: 4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003782/0.1259, allocations: 2.915 MB / 369 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1712/0.2972, allocations: 2.732 MB / 371.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.2994, allocations: 1.376 MB / 373.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.302, allocations: 1.783 MB / 374.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006357/0.3027, allocations: 376 kB / 375.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.3038, allocations: 473.6 kB / 375.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001142/0.3049, allocations: 1.07 MB / 376.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002703/0.3077, allocations: 1.674 MB / 378.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005813/0.3135, allocations: 4.83 MB / 383.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3135, allocations: 0 / 383.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3135, allocations: 0 / 383.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000154/0.3137, allocations: 1.219 kB / 383.2 MB, free: 8.75 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00805/0.3218, allocations: 3.387 MB / 386.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.3218, allocations: 9.312 kB / 386.6 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004963/0.3223, allocations: 367.4 kB / 387 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000884/0.3232, allocations: 338.3 kB / 387.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002818/0.326, allocations: 1.762 MB / 389.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.3262, allocations: 201 kB / 389.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003716/0.3266, allocations: 254.7 kB / 389.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/0.3315, allocations: 3.277 MB / 392.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-05/0.3316, allocations: 6.891 kB / 392.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.3318, allocations: 105.9 kB / 392.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.332, allocations: 126.1 kB / 393.1 MB, free: 2.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003869/0.3358, allocations: 2.746 MB / 395.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.3505, allocations: 10.5 MB / 406.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.3523, allocations: 1.358 MB / 407.7 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.3535, allocations: 0.7879 MB / 408.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002835/0.3538, allocations: 205.1 kB / 408.6 MB, free: 6.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.3539, allocations: 43.56 kB / 408.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.876e-06/0.3539, allocations: 0 / 408.7 MB, free: 6.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01483/0.3687, allocations: 6.902 MB / 415.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.3688, allocations: 64.41 kB / 415.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003013/0.3718, allocations: 1.785 MB / 417.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.3719, allocations: 45.7 kB / 417.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008883/0.3728, allocations: 1.269 MB / 418.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.3732, allocations: 431.7 kB / 419.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004786/0.3737, allocations: 299.2 kB / 419.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.875e-05/0.3738, allocations: 312.9 kB / 419.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.375, allocations: 0.7769 MB / 420.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.3765, allocations: 1.286 MB / 421.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002929/0.3794, allocations: 2.217 MB / 424 MB, free: 6.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/0.3795, allocations: 4 kB / 424.1 MB, free: 6.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004063/0.3835, allocations: 2.474 MB / 426.5 MB, free: 3.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.3836, allocations: 12 kB / 426.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-05/0.3836, allocations: 16 kB / 426.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006778/0.3843, allocations: 242.2 kB / 426.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.3857, allocations: 416 kB / 427.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.3884, allocations: 3.235 MB / 430.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.3899, allocations: 131.8 kB / 430.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.3901, allocations: 76.05 kB / 430.6 MB, free: 15.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001456/0.3916, allocations: 0.8124 MB / 431.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004296/0.392, allocations: 189.6 kB / 431.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/0.3954, allocations: 2.04 MB / 433.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.3954, allocations: 14.62 kB / 433.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3955, allocations: 4 kB / 433.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.3955, allocations: 3.984 kB / 433.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008159/0.4036, allocations: 4.76 MB / 438.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.4037, allocations: 0 / 438.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.4048, allocations: 262.7 kB / 438.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005446/0.4053, allocations: 206.5 kB / 438.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.4054, allocations: 31.92 kB / 438.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.408, allocations: 3.215 MB / 442.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4081, allocations: 4.031 kB / 442.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004461/0.4125, allocations: 3.132 MB / 445.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000947/0.4135, allocations: 426.7 kB / 445.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/0.414, allocations: 23.98 kB / 445.7 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.4152, allocations: 95.81 kB / 445.8 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.4154, allocations: 87.72 kB / 445.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.583e-05/0.4155, allocations: 35.94 kB / 445.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.4176, allocations: 1.22 MB / 447.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4176, allocations: 0 / 447.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00184/0.4195, allocations: 488 kB / 447.6 MB, free: 14.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,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.005112/0.4246, allocations: 3.78 MB / 451.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005357/0.43, allocations: 2.983 MB / 454.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.43, allocations: 0 / 454.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001907/0.4319, allocations: 1.347 MB / 455.8 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/0.4353, allocations: 498.3 kB / 456.2 MB, free: 5.594 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03764/0.473, allocations: 21.74 MB / 478 MB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/0.475, allocations: 2.01 MB / 480 MB, free: 12.26 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001519/0.4766, allocations: 0.496 MB / 480.5 MB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/0.4779, allocations: 1.011 MB / 481.5 MB, free: 10.75 MB / 398.1 MB Notification: Performance of SimCode: time 1.382e-06/0.478, allocations: 0 / 481.5 MB, free: 10.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.855/2.333, allocations: 44.94 MB / 0.5141 GB, free: 14.36 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000316/2.333, allocations: 261.2 kB / 0.5143 GB, free: 14.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.088/5.421, allocations: 0 / 0.5143 GB, free: 14.11 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches