Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000829/0.000829, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009809/0.0009809, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8657/0.8657, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.43e-05/1.569e-05, allocations: 7.344 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008065/0.008081, allocations: 9.659 MB / 334.2 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004489/0.01257, allocations: 3.493 MB / 337.7 MB, free: 2.648 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.0132, allocations: 83.44 kB / 337.8 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.01432, allocations: 0.8149 MB / 338.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.0156, allocations: 0.9468 MB / 339.5 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004717/0.01607, allocations: 463.2 kB / 340 MB, free: 344 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.01779, allocations: 3.049 MB / 343 MB, free: 13.28 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001268/0.01906, allocations: 1.513 MB / 344.5 MB, free: 11.7 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.02064, allocations: 2.07 MB / 346.6 MB, free: 9.629 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.02193, allocations: 1.512 MB / 348.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002811/0.02221, allocations: 372 kB / 348.5 MB, free: 7.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004598/0.02267, allocations: 487.7 kB / 349 MB, free: 7.273 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006137/0.02328, allocations: 1.11 MB / 350.1 MB, free: 6.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000721/0.024, allocations: 1.134 MB / 351.2 MB, free: 5.023 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.02705, allocations: 4.958 MB / 356.2 MB, free: 52 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.02705, allocations: 0 / 356.2 MB, free: 52 kB / 314.7 MB Notification: Performance of FrontEnd: time 3.516e-06/0.02706, allocations: 4 kB / 356.2 MB, free: 48 kB / 314.7 MB Notification: Performance of Transformations before backend: time 4.087e-05/0.0271, allocations: 0 / 356.2 MB, free: 48 kB / 314.7 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.004021/0.03112, allocations: 3.374 MB / 359.6 MB, free: 12.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.03116, allocations: 11.98 kB / 359.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003126/0.03148, allocations: 367 kB / 359.9 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005417/0.03202, allocations: 362.8 kB / 360.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/0.03398, allocations: 1.759 MB / 362 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.03408, allocations: 185.4 kB / 362.2 MB, free: 9.902 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/0.03432, allocations: 252.3 kB / 362.5 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003917/0.03824, allocations: 3.363 MB / 365.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.641e-05/0.03829, allocations: 11.95 kB / 365.8 MB, free: 6.184 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.03845, allocations: 100 kB / 365.9 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.882e-05/0.03854, allocations: 120.9 kB / 366.1 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003043/0.04158, allocations: 2.744 MB / 368.8 MB, free: 3.207 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008876/0.05045, allocations: 9.44 MB / 378.2 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.05155, allocations: 1.062 MB / 379.3 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009489/0.0525, allocations: 0.712 MB / 380 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.05265, allocations: 52.89 kB / 380.1 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.05267, allocations: 43.56 kB / 380.1 MB, free: 7.512 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 2.144e-06/0.05267, allocations: 0 / 380.1 MB, free: 7.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.008114/0.06079, allocations: 6.648 MB / 386.8 MB, free: 0.832 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.06082, allocations: 68.41 kB / 386.8 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.06266, allocations: 1.825 MB / 388.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.06272, allocations: 41.7 kB / 388.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006224/0.06334, allocations: 1.314 MB / 390 MB, free: 13.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.06356, allocations: 436.3 kB / 390.4 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000294/0.06385, allocations: 295.4 kB / 390.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.142e-05/0.06393, allocations: 305.1 kB / 391 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007933/0.06472, allocations: 0.7769 MB / 391.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.06712, allocations: 1.296 MB / 393.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002093/0.06921, allocations: 2.214 MB / 395.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.06922, allocations: 4 kB / 395.3 MB, free: 7.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002613/0.07184, allocations: 2.479 MB / 397.8 MB, free: 5.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.07186, allocations: 12 kB / 397.8 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.07188, allocations: 16 kB / 397.8 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.07226, allocations: 243.2 kB / 398 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007997/0.07306, allocations: 419.6 kB / 398.5 MB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.07478, allocations: 3.015 MB / 401.5 MB, free: 1.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.07549, allocations: 131.8 kB / 401.6 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.242e-05/0.07557, allocations: 71.98 kB / 401.7 MB, free: 1.148 MB / 362.7 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.0009076/0.07648, allocations: 0.8214 MB / 402.5 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.07666, allocations: 198.7 kB / 402.7 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002071/0.07873, allocations: 2.031 MB / 404.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.07874, allocations: 12 kB / 404.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.07874, allocations: 4 kB / 404.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.07875, allocations: 11.97 kB / 404.7 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004665/0.08342, allocations: 4.448 MB / 409.2 MB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.08342, allocations: 4 kB / 409.2 MB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005714/0.084, allocations: 263.6 kB / 409.5 MB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.08429, allocations: 207.5 kB / 409.7 MB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/0.08434, allocations: 24 kB / 409.7 MB, free: 8.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.08593, allocations: 2.997 MB / 412.7 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.08593, allocations: 4 kB / 412.7 MB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00287/0.0888, allocations: 3.136 MB / 415.8 MB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005025/0.08931, allocations: 362.7 kB / 416.2 MB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.08943, allocations: 24 kB / 416.2 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004806/0.08991, allocations: 91.88 kB / 416.3 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.09003, allocations: 96.7 kB / 416.4 MB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.391e-05/0.09008, allocations: 36 kB / 416.4 MB, free: 1.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001191/0.09127, allocations: 1.22 MB / 417.6 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.09127, allocations: 0 / 417.6 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009032/0.09217, allocations: 492 kB / 418.1 MB, free: 296 kB / 378.7 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.003439/0.09561, allocations: 3.788 MB / 421.9 MB, free: 12.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.0977, allocations: 2.114 MB / 424 MB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.0977, allocations: 0 / 424 MB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.09883, allocations: 1.114 MB / 425.1 MB, free: 9.141 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.1001, allocations: 0.4888 MB / 425.6 MB, free: 8.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/0.1214, allocations: 18.83 MB / 444.4 MB, free: 5.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.1226, allocations: 1.437 MB / 445.9 MB, free: 3.598 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009298/0.1235, allocations: 0.4921 MB / 446.4 MB, free: 3.102 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009252/0.1244, allocations: 1.024 MB / 447.4 MB, free: 2.074 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/0.1245, allocations: 0 / 447.4 MB, free: 2.074 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2143/0.3388, allocations: 49.25 MB / 496.7 MB, free: 76.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/8.835, allocations: 0 / 496.7 MB, free: 76.04 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.256722032092512]