Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 254.1 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 51.92 kB / 373 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1133, allocations: 53.33 MB / 426.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.2495/0.3629, allocations: 11.49 MB / 437.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006707/0.3696, allocations: 3.591 MB / 441.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002062/0.3716, allocations: 89.78 kB / 441.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002437/0.3741, allocations: 0.9063 MB / 442.4 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003184/0.3773, allocations: 0.9774 MB / 443.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001067/0.3783, allocations: 439.9 kB / 443.8 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005149/0.3835, allocations: 3.756 MB / 447.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003067/0.3866, allocations: 2.096 MB / 449.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003422/0.39, allocations: 1.701 MB / 451.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00402/0.394, allocations: 2.015 MB / 453.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000704/0.3947, allocations: 418.4 kB / 453.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001568/0.3963, allocations: 0.5065 MB / 454.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001412/0.3977, allocations: 1.205 MB / 455.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003261/0.4009, allocations: 1.936 MB / 457.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008155/0.4091, allocations: 5.569 MB / 463 MB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4091, allocations: 5.125 kB / 463 MB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4091, allocations: 4 kB / 463 MB, free: 7.719 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.4092, allocations: 0 / 463 MB, free: 7.719 MB / 366.1 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.009669/0.4189, allocations: 3.902 MB / 466.9 MB, free: 5.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.4189, allocations: 12.25 kB / 466.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006237/0.4196, allocations: 413.5 kB / 467.3 MB, free: 4.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/0.4208, allocations: 410.9 kB / 467.7 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00404/0.4248, allocations: 2.076 MB / 469.8 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.425, allocations: 213.1 kB / 470 MB, free: 3.012 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004171/0.4255, allocations: 290.4 kB / 470.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006819/0.4323, allocations: 3.857 MB / 474.2 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.458e-05/0.4323, allocations: 8.547 kB / 474.2 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002799/0.4326, allocations: 121 kB / 474.3 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001275/0.4328, allocations: 128.3 kB / 474.4 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005772/0.4385, allocations: 3.253 MB / 477.7 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/0.4594, allocations: 11.81 MB / 489.5 MB, free: 1.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003711/0.4631, allocations: 3.543 MB / 493 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002219/0.4653, allocations: 1.164 MB / 494.2 MB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.4656, allocations: 126.4 kB / 494.3 MB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.4657, allocations: 51.88 kB / 494.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.457e-06/0.4657, allocations: 0 / 494.4 MB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01697/0.4826, allocations: 7.359 MB / 0.49 GB, free: 4.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.4827, allocations: 64.72 kB / 0.49 GB, free: 4.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003919/0.4866, allocations: 2.068 MB / 0.492 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.4868, allocations: 53.7 kB / 0.4921 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.4882, allocations: 1.405 MB / 0.4935 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005317/0.4887, allocations: 0.5423 MB / 0.494 GB, free: 48 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006099/0.4893, allocations: 347.5 kB / 0.4943 GB, free: 15.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4895, allocations: 301.1 kB / 0.4946 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.4909, allocations: 0.8705 MB / 0.4955 GB, free: 14.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.4928, allocations: 1.365 MB / 0.4968 GB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003496/0.4963, allocations: 2.33 MB / 0.4991 GB, free: 10.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.4963, allocations: 4 kB / 0.4991 GB, free: 10.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006234/0.5025, allocations: 3.274 MB / 0.5023 GB, free: 7.078 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.5025, allocations: 12 kB / 0.5023 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.823e-05/0.5026, allocations: 16 kB / 0.5023 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002526/0.5051, allocations: 0.8446 MB / 0.5031 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.5064, allocations: 339.4 kB / 0.5034 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02069/0.5271, allocations: 20.59 MB / 0.5236 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/0.5292, allocations: 99.88 kB / 0.5236 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/0.5294, allocations: 79.98 kB / 0.5237 GB, free: 15.55 MB / 446.1 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.002088/0.5315, allocations: 0.9306 MB / 0.5246 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004865/0.532, allocations: 230.5 kB / 0.5249 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004909/0.5369, allocations: 2.609 MB / 0.5274 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.5369, allocations: 16 kB / 0.5274 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.537, allocations: 12 kB / 0.5274 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.537, allocations: 8.062 kB / 0.5274 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/0.5479, allocations: 5.863 MB / 0.5332 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.548, allocations: 11.94 kB / 0.5332 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007865/0.5487, allocations: 195.7 kB / 0.5334 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002056/0.5508, allocations: 0.7436 MB / 0.5341 GB, free: 4.656 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-05/0.5509, allocations: 32 kB / 0.5341 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01758/0.5685, allocations: 18.16 MB / 0.5519 GB, free: 1.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.5685, allocations: 11.94 kB / 0.5519 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006515/0.575, allocations: 3.792 MB / 0.5556 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/0.5764, allocations: 495.5 kB / 0.556 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004502/0.5768, allocations: 39.98 kB / 0.5561 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.5779, allocations: 99.89 kB / 0.5562 GB, free: 12.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003782/0.5783, allocations: 149 kB / 0.5563 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.5784, allocations: 43.98 kB / 0.5564 GB, free: 12.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.5808, allocations: 1.404 MB / 0.5577 GB, free: 10.89 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5808, allocations: 0 / 0.5577 GB, free: 10.89 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002869/0.5837, allocations: 0.6523 MB / 0.5584 GB, free: 10.24 MB / 478.1 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.006635/0.5903, allocations: 4.452 MB / 0.5627 GB, free: 5.664 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005605/0.5959, allocations: 3.37 MB / 0.566 GB, free: 2.152 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.5959, allocations: 0 / 0.566 GB, free: 2.152 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002968/0.5989, allocations: 2.151 MB / 0.5681 GB, free: 15.87 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.6025, allocations: 0.6861 MB / 0.5688 GB, free: 15.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04125/0.6438, allocations: 22.59 MB / 0.5908 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.6463, allocations: 2.288 MB / 0.5931 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001632/0.6479, allocations: 0.491 MB / 0.5936 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001452/0.6493, allocations: 1.089 MB / 0.5946 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of SimCode: time 1.724e-06/0.6493, allocations: 0 / 0.5946 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3644/1.014, allocations: 60.3 MB / 0.6535 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.67, allocations: 14.14 kB / 0.6535 GB, free: 153.8 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 18.388458471978083]