Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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.001802/0.001802, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002222/0.002222, allocations: 203.1 kB / 23.73 MB, free: 4.414 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.486/1.486, allocations: 230.5 MB / 257.4 MB, free: 7.746 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.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.89 kB / 377.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2535, allocations: 53.42 MB / 431.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01698/0.2704, allocations: 9.051 MB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008452/0.2789, allocations: 3.131 MB / 443.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001372/0.2803, allocations: 75.5 kB / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.2823, allocations: 0.6869 MB / 444.1 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002729/0.2851, allocations: 0.8894 MB / 445 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.2861, allocations: 431.4 kB / 445.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003778/0.2899, allocations: 3.002 MB / 448.4 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.2919, allocations: 1.325 MB / 449.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.2939, allocations: 1.402 MB / 451.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.2966, allocations: 1.662 MB / 452.8 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000663/0.2973, allocations: 356 kB / 453.1 MB, free: 280 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.2984, allocations: 463.8 kB / 453.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.2995, allocations: 1.032 MB / 454.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001581/0.301, allocations: 1.303 MB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005075/0.3061, allocations: 4.745 MB / 460.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3061, allocations: 0 / 460.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3061, allocations: 0 / 460.7 MB, free: 8.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.777e-05/0.3062, allocations: 0 / 460.7 MB, free: 8.715 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.006757/0.3129, allocations: 3.284 MB / 464 MB, free: 5.379 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.313, allocations: 15.98 kB / 464 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004613/0.3135, allocations: 337.6 kB / 464.3 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.3146, allocations: 374.9 kB / 464.7 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00362/0.3182, allocations: 1.709 MB / 466.4 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.3183, allocations: 184.6 kB / 466.6 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003705/0.3187, allocations: 232 kB / 466.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005413/0.3241, allocations: 3.237 MB / 470 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.934e-05/0.3242, allocations: 3.953 kB / 470 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.3244, allocations: 96 kB / 470.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3245, allocations: 108.5 kB / 470.2 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004941/0.3295, allocations: 2.692 MB / 472.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01536/0.3448, allocations: 8.746 MB / 481.7 MB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.3473, allocations: 1.408 MB / 483.1 MB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001897/0.3492, allocations: 1.03 MB / 484.1 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000221/0.3494, allocations: 52.97 kB / 484.2 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.3494, allocations: 47.56 kB / 484.2 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.116e-06/0.3494, allocations: 0 / 484.2 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.02022/0.3697, allocations: 6.35 MB / 490.6 MB, free: 10.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.3697, allocations: 64.72 kB / 490.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/0.374, allocations: 1.786 MB / 492.4 MB, free: 8.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002873/0.3743, allocations: 49.7 kB / 492.5 MB, free: 8.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.3755, allocations: 1.19 MB / 493.6 MB, free: 7.152 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006449/0.3761, allocations: 468 kB / 494.1 MB, free: 6.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006866/0.3768, allocations: 287.5 kB / 494.4 MB, free: 6.402 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.377, allocations: 309.1 kB / 494.7 MB, free: 6.098 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.379, allocations: 0.7925 MB / 495.5 MB, free: 5.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002442/0.3814, allocations: 1.205 MB / 496.7 MB, free: 3.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004878/0.3863, allocations: 2.094 MB / 498.8 MB, free: 1.664 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/0.3863, allocations: 4 kB / 498.8 MB, free: 1.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.006874/0.3932, allocations: 2.612 MB / 0.4896 GB, free: 15.03 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3932, allocations: 8 kB / 0.4896 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/0.3933, allocations: 12 kB / 0.4897 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.3947, allocations: 423.5 kB / 0.4901 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/0.3969, allocations: 359.4 kB / 0.4904 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.4078, allocations: 6.723 MB / 0.497 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/0.4102, allocations: 103.9 kB / 0.4971 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002688/0.4104, allocations: 67.97 kB / 0.4971 GB, free: 7.004 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002295/0.4127, allocations: 0.8017 MB / 0.4979 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006917/0.4134, allocations: 198.7 kB / 0.4981 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/0.4195, allocations: 2.288 MB / 0.5003 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.4195, allocations: 16 kB / 0.5004 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.4195, allocations: 4 kB / 0.5004 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.4196, allocations: 7.969 kB / 0.5004 GB, free: 3.652 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.4333, allocations: 4.725 MB / 0.505 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.4334, allocations: 4 kB / 0.505 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001523/0.4349, allocations: 236 kB / 0.5052 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/0.4368, allocations: 455 kB / 0.5056 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.4369, allocations: 35.98 kB / 0.5057 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/0.4501, allocations: 8.18 MB / 0.5137 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-05/0.4501, allocations: 8.031 kB / 0.5137 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008942/0.459, allocations: 3.435 MB / 0.517 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/0.4607, allocations: 370.8 kB / 0.5174 GB, free: 1.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004177/0.4611, allocations: 35.98 kB / 0.5174 GB, free: 1.539 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/0.4625, allocations: 83.91 kB / 0.5175 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004418/0.4629, allocations: 124.7 kB / 0.5176 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/0.4631, allocations: 43.98 kB / 0.5177 GB, free: 1.293 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002708/0.4658, allocations: 1.207 MB / 0.5188 GB, free: 96 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4658, allocations: 0 / 0.5188 GB, free: 96 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002731/0.4685, allocations: 0.5078 MB / 0.5193 GB, free: 15.58 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,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.009512/0.478, allocations: 4.079 MB / 0.5233 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006361/0.4844, allocations: 2.314 MB / 0.5256 GB, free: 9.074 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/0.4844, allocations: 4 kB / 0.5256 GB, free: 9.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00419/0.4886, allocations: 1.56 MB / 0.5271 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/0.4924, allocations: 483.1 kB / 0.5276 GB, free: 7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2532/0.7456, allocations: 19.39 MB / 0.5465 GB, free: 97.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/0.7468, allocations: 1.438 MB / 0.5479 GB, free: 96.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001119/0.7479, allocations: 449.2 kB / 0.5483 GB, free: 96.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009547/0.7489, allocations: 0.9297 MB / 0.5492 GB, free: 95.31 MB / 446.1 MB Notification: Performance of SimCode: time 1.713e-06/0.7489, allocations: 0 / 0.5492 GB, free: 95.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08537/0.8343, allocations: 51.44 MB / 0.5995 GB, free: 44.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.12, allocations: 11.39 kB / 0.5995 GB, free: 44.91 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.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: 16.957935340236872]