Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001792/0.001792, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 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.002085/0.002085, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 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 1.558/1.558, allocations: 230.2 MB / 254.5 MB, free: 15.28 MB / 206.1 MB " [Timeout remaining time 178] 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_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 63.89 kB / 373.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1137, allocations: 53.33 MB / 426.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.2211/0.3347, allocations: 11.49 MB / 438.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00794/0.3427, allocations: 3.604 MB / 441.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002803/0.3455, allocations: 69.66 kB / 441.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002899/0.3484, allocations: 0.8914 MB / 442.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004031/0.3524, allocations: 0.9728 MB / 443.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.3539, allocations: 445.9 kB / 444.2 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005636/0.3595, allocations: 3.769 MB / 447.9 MB, free: 108 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003452/0.3629, allocations: 2.099 MB / 450 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/0.3671, allocations: 1.673 MB / 451.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004573/0.3716, allocations: 2.015 MB / 453.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00146/0.3731, allocations: 421.1 kB / 454.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002102/0.3752, allocations: 0.5025 MB / 454.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001758/0.377, allocations: 1.213 MB / 455.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00463/0.3816, allocations: 1.936 MB / 457.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009432/0.391, allocations: 5.568 MB / 463.3 MB, free: 8.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.391, allocations: 1.469 kB / 463.3 MB, free: 8.059 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.391, allocations: 0 / 463.3 MB, free: 8.059 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002585/0.3913, allocations: 0 / 463.3 MB, free: 8.059 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.01208/0.4034, allocations: 3.912 MB / 467.3 MB, free: 5.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.4034, allocations: 9.969 kB / 467.3 MB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001007/0.4044, allocations: 412.7 kB / 467.7 MB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001522/0.406, allocations: 415.3 kB / 468.1 MB, free: 4.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005525/0.4115, allocations: 2.072 MB / 470.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002394/0.4117, allocations: 210 kB / 470.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007414/0.4125, allocations: 289.3 kB / 470.6 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009909/0.4224, allocations: 3.857 MB / 474.5 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.859e-05/0.4225, allocations: 13.14 kB / 474.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003262/0.4228, allocations: 118.1 kB / 474.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.4229, allocations: 119.4 kB / 474.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006977/0.4299, allocations: 3.255 MB / 478 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.4582, allocations: 11.81 MB / 489.8 MB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004337/0.4625, allocations: 3.539 MB / 493.3 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002367/0.4649, allocations: 1.16 MB / 494.5 MB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003221/0.4652, allocations: 126.3 kB / 494.6 MB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.394e-05/0.4653, allocations: 57.3 kB / 494.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.007e-06/0.4653, allocations: 4 kB / 494.7 MB, free: 12.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01677/0.482, allocations: 7.353 MB / 0.4903 GB, free: 4.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/0.4821, allocations: 72.7 kB / 0.4903 GB, free: 4.527 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004478/0.4866, allocations: 2.068 MB / 0.4924 GB, free: 2.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002666/0.4868, allocations: 49.7 kB / 0.4924 GB, free: 2.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.4882, allocations: 1.409 MB / 0.4938 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006856/0.4889, allocations: 0.5423 MB / 0.4943 GB, free: 404 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008432/0.4897, allocations: 343.4 kB / 0.4946 GB, free: 52 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4898, allocations: 305.1 kB / 0.4949 GB, free: 15.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.4914, allocations: 0.8666 MB / 0.4958 GB, free: 14.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.4934, allocations: 1.365 MB / 0.4971 GB, free: 13.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003581/0.497, allocations: 2.33 MB / 0.4994 GB, free: 10.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.822e-05/0.497, allocations: 7.938 kB / 0.4994 GB, free: 10.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006432/0.5034, allocations: 3.271 MB / 0.5026 GB, free: 7.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/0.5035, allocations: 12 kB / 0.5026 GB, free: 7.422 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.054e-05/0.5035, allocations: 19.98 kB / 0.5026 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002459/0.506, allocations: 0.8433 MB / 0.5034 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.5073, allocations: 339.4 kB / 0.5038 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0209/0.5282, allocations: 20.58 MB / 0.5239 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.5304, allocations: 104 kB / 0.524 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004168/0.5308, allocations: 79.94 kB / 0.524 GB, free: 15.91 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.002367/0.5332, allocations: 0.9332 MB / 0.525 GB, free: 14.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007593/0.534, allocations: 226.5 kB / 0.5252 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005368/0.5393, allocations: 2.621 MB / 0.5277 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.5394, allocations: 16 kB / 0.5277 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.792e-05/0.5394, allocations: 4 kB / 0.5277 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.5394, allocations: 7.969 kB / 0.5278 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.5528, allocations: 5.863 MB / 0.5335 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.498e-05/0.5528, allocations: 4 kB / 0.5335 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008318/0.5536, allocations: 199.6 kB / 0.5337 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.5557, allocations: 0.732 MB / 0.5344 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/0.5559, allocations: 39.98 kB / 0.5344 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01856/0.5744, allocations: 18.17 MB / 0.5522 GB, free: 1.426 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.264e-05/0.5744, allocations: 7.938 kB / 0.5522 GB, free: 1.418 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007123/0.5815, allocations: 3.796 MB / 0.5559 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/0.5834, allocations: 491.5 kB / 0.5564 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008259/0.5842, allocations: 39.98 kB / 0.5564 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/0.586, allocations: 103.9 kB / 0.5565 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004415/0.5864, allocations: 141 kB / 0.5566 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.5865, allocations: 44 kB / 0.5567 GB, free: 12.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003292/0.5898, allocations: 1.404 MB / 0.558 GB, free: 11.26 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5898, allocations: 3.938 kB / 0.558 GB, free: 11.25 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004176/0.594, allocations: 0.6562 MB / 0.5587 GB, free: 10.6 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.008052/0.6021, allocations: 4.457 MB / 0.563 GB, free: 6.016 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005819/0.6079, allocations: 3.365 MB / 0.5663 GB, free: 2.508 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/0.6079, allocations: 4 kB / 0.5663 GB, free: 2.504 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.611, allocations: 2.14 MB / 0.5684 GB, free: 240 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004322/0.6153, allocations: 0.6905 MB / 0.5691 GB, free: 15.55 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04748/0.6628, allocations: 22.58 MB / 0.5911 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003335/0.6661, allocations: 2.284 MB / 0.5934 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001872/0.668, allocations: 0.4988 MB / 0.5939 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/0.6698, allocations: 1.093 MB / 0.5949 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of SimCode: time 1.062e-06/0.6698, allocations: 0 / 0.5949 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3405/1.01, allocations: 60.29 MB / 0.6538 GB, free: 154.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/15.32, allocations: 14.28 kB / 0.6538 GB, free: 154.2 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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.236943251919]