Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009069/0.0009069, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008876/0.0008876, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9179/0.9179, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.98e-05/2.15e-05, allocations: 5.516 kB / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009214/0.009235, allocations: 10.03 MB / 328.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005518/0.01475, allocations: 3.353 MB / 331.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.01617, allocations: 87.44 kB / 331.9 MB, free: 8.695 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002113/0.01829, allocations: 0.8344 MB / 332.7 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002479/0.02077, allocations: 1.02 MB / 333.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008518/0.02162, allocations: 447.2 kB / 334.2 MB, free: 6.391 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003782/0.0254, allocations: 3.859 MB / 338.1 MB, free: 2.516 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.02744, allocations: 1.549 MB / 339.6 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003409/0.03085, allocations: 2.456 MB / 342.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002279/0.03313, allocations: 1.75 MB / 343.8 MB, free: 12.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007828/0.03391, allocations: 420 kB / 344.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008468/0.03476, allocations: 0.4998 MB / 344.7 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008445/0.0356, allocations: 1.243 MB / 346 MB, free: 10.53 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002043/0.03764, allocations: 1.341 MB / 347.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004793/0.04243, allocations: 5.625 MB / 352.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.04244, allocations: 0 / 352.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.113e-06/0.04244, allocations: 0 / 352.9 MB, free: 3.543 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001761/0.04262, allocations: 0 / 352.9 MB, free: 3.543 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006706/0.04932, allocations: 3.793 MB / 356.7 MB, free: 15.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.04937, allocations: 16.86 kB / 356.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004806/0.04985, allocations: 405 kB / 357.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007259/0.05058, allocations: 414.5 kB / 357.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002917/0.0535, allocations: 1.992 MB / 359.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.05362, allocations: 210.1 kB / 359.7 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.05394, allocations: 280.4 kB / 360 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005362/0.0593, allocations: 4.174 MB / 364.2 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.597e-05/0.05936, allocations: 15.94 kB / 364.2 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/0.05956, allocations: 116 kB / 364.3 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-05/0.05966, allocations: 125.5 kB / 364.4 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004371/0.06403, allocations: 3.242 MB / 367.7 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/0.07792, allocations: 10.77 MB / 378.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.07979, allocations: 1.736 MB / 380.2 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/0.08115, allocations: 1.157 MB / 381.4 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.08133, allocations: 51.08 kB / 381.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.08137, allocations: 47.88 kB / 381.4 MB, free: 6.449 MB / 346.7 MB Notification: Performance of pre-optimization done (n=136): time 3.978e-06/0.08137, allocations: 0 / 381.4 MB, free: 6.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=151): time 0.01042/0.09179, allocations: 6.509 MB / 388 MB, free: 15.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.09184, allocations: 64.72 kB / 388 MB, free: 15.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/0.09501, allocations: 2.091 MB / 390.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.09516, allocations: 49.7 kB / 390.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007866/0.09594, allocations: 1.409 MB / 391.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.09631, allocations: 0.5306 MB / 392.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004069/0.09672, allocations: 351.4 kB / 392.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.878e-05/0.0968, allocations: 301.1 kB / 392.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.09791, allocations: 0.8744 MB / 393.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.09915, allocations: 1.362 MB / 395 MB, free: 8.578 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/0.1018, allocations: 2.33 MB / 397.3 MB, free: 6.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/0.1018, allocations: 4 kB / 397.3 MB, free: 6.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004191/0.106, allocations: 3.196 MB / 400.5 MB, free: 2.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/0.106, allocations: 14.5 kB / 400.5 MB, free: 2.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.106, allocations: 19.98 kB / 400.5 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.1075, allocations: 0.8405 MB / 401.4 MB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008408/0.1084, allocations: 347.4 kB / 401.7 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/0.1212, allocations: 19.34 MB / 421.1 MB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.1225, allocations: 88 kB / 421.1 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.1226, allocations: 79.98 kB / 421.2 MB, free: 12.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001459/0.1241, allocations: 0.9343 MB / 422.2 MB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/0.1245, allocations: 230.5 kB / 422.4 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003259/0.1277, allocations: 2.538 MB / 424.9 MB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.1277, allocations: 16 kB / 424.9 MB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.1278, allocations: 12 kB / 424.9 MB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1278, allocations: 7.969 kB / 425 MB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006693/0.1345, allocations: 5.469 MB / 430.4 MB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.1345, allocations: 0 / 430.4 MB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004577/0.1349, allocations: 199.7 kB / 430.6 MB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.136, allocations: 0.7346 MB / 431.4 MB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.554e-05/0.1361, allocations: 35.94 kB / 431.4 MB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/0.147, allocations: 17.05 MB / 448.4 MB, free: 192 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.147, allocations: 8.156 kB / 448.4 MB, free: 184 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1608/0.3079, allocations: 3.704 MB / 452.1 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007008/0.3086, allocations: 422.8 kB / 452.6 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.3088, allocations: 35.56 kB / 452.6 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005891/0.3093, allocations: 105.9 kB / 452.7 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/0.3096, allocations: 152.3 kB / 452.8 MB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.553e-05/0.3097, allocations: 41.09 kB / 452.9 MB, free: 115.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001322/0.311, allocations: 1.403 MB / 454.3 MB, free: 115.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.311, allocations: 0 / 454.3 MB, free: 115.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001706/0.3127, allocations: 0.6618 MB / 455 MB, free: 115.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.00366/0.3163, allocations: 4.36 MB / 459.3 MB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002791/0.3191, allocations: 3.36 MB / 462.7 MB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.3191, allocations: 0 / 462.7 MB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.3205, allocations: 2.147 MB / 464.8 MB, free: 108.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/0.3225, allocations: 0.6723 MB / 465.5 MB, free: 107.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02489/0.3474, allocations: 22.49 MB / 488 MB, free: 85.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.3485, allocations: 1.734 MB / 489.7 MB, free: 84.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001117/0.3497, allocations: 0.4964 MB / 490.2 MB, free: 83.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000811/0.3505, allocations: 1.086 MB / 491.3 MB, free: 82.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3505, allocations: 0 / 491.3 MB, free: 82.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08044/0.4309, allocations: 63.89 MB / 0.5422 GB, free: 19.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.001/9.432, allocations: 0 / 0.5422 GB, free: 19.56 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.282287527807057]