Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.001407/0.001407, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001545/0.001545, allocations: 188.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.385/1.385, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 47.92 kB / 370.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2424, allocations: 52.19 MB / 422.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.0147/0.2571, allocations: 11.91 MB / 434.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007889/0.2649, allocations: 3.943 MB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.2668, allocations: 87.38 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002828/0.2697, allocations: 0.8778 MB / 439.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003463/0.2731, allocations: 1.041 MB / 440.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.2749, allocations: 0.5343 MB / 441 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004939/0.2798, allocations: 3.44 MB / 444.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003159/0.283, allocations: 1.541 MB / 446 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002735/0.2857, allocations: 1.573 MB / 447.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003705/0.2894, allocations: 1.993 MB / 449.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001124/0.2905, allocations: 408 kB / 450 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.2925, allocations: 0.7142 MB / 450.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.2944, allocations: 1.169 MB / 451.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003345/0.2977, allocations: 1.836 MB / 453.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007422/0.3052, allocations: 5.395 MB / 459.1 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3052, allocations: 0 / 459.1 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3052, allocations: 0 / 459.1 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001733/0.3053, allocations: 0 / 459.1 MB, free: 10 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.009897/0.3152, allocations: 3.73 MB / 462.8 MB, free: 6.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3153, allocations: 12.03 kB / 462.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001015/0.3163, allocations: 388 kB / 463.2 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.3181, allocations: 454.6 kB / 463.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/0.3225, allocations: 1.89 MB / 465.6 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.3227, allocations: 209.3 kB / 465.8 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006901/0.3234, allocations: 271.9 kB / 466 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008316/0.3317, allocations: 3.517 MB / 469.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001216/0.3318, allocations: 7.984 kB / 469.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005393/0.3323, allocations: 116 kB / 469.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.3325, allocations: 117.3 kB / 469.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006785/0.3393, allocations: 2.98 MB / 472.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02279/0.3621, allocations: 10.82 MB / 483.6 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/0.3653, allocations: 1.514 MB / 485.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/0.3675, allocations: 1.098 MB / 486.2 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000315/0.3678, allocations: 49.28 kB / 486.2 MB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.3679, allocations: 43.88 kB / 486.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=131): time 4.899e-06/0.3679, allocations: 0 / 486.3 MB, free: 14.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=148): time 0.01843/0.3863, allocations: 7.099 MB / 493.4 MB, free: 7.152 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.3864, allocations: 68.72 kB / 493.4 MB, free: 7.074 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/0.3905, allocations: 1.979 MB / 495.4 MB, free: 5.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002848/0.3908, allocations: 49.7 kB / 495.5 MB, free: 4.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.3921, allocations: 1.35 MB / 496.8 MB, free: 3.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006879/0.3928, allocations: 0.5267 MB / 497.4 MB, free: 3.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006898/0.3935, allocations: 331.4 kB / 497.7 MB, free: 2.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3936, allocations: 301.1 kB / 498 MB, free: 2.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.3953, allocations: 0.8901 MB / 498.9 MB, free: 1.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002105/0.3974, allocations: 1.372 MB / 0.4885 GB, free: 8 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003942/0.4013, allocations: 2.381 MB / 0.4908 GB, free: 13.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.13e-05/0.4014, allocations: 4 kB / 0.4908 GB, free: 13.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006047/0.4074, allocations: 2.911 MB / 0.4937 GB, free: 10.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.4075, allocations: 12.38 kB / 0.4937 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.242e-05/0.4075, allocations: 16 kB / 0.4937 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.4087, allocations: 454.2 kB / 0.4941 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/0.4105, allocations: 439.2 kB / 0.4946 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007631/0.4181, allocations: 5.893 MB / 0.5003 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.4202, allocations: 123.8 kB / 0.5004 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003854/0.4206, allocations: 71.98 kB / 0.5005 GB, free: 3.266 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001903/0.4225, allocations: 0.8485 MB / 0.5013 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/0.4233, allocations: 226.6 kB / 0.5015 GB, free: 2.184 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005322/0.4286, allocations: 2.508 MB / 0.504 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-05/0.4286, allocations: 16 kB / 0.504 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.4287, allocations: 4 kB / 0.504 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.4287, allocations: 7.969 kB / 0.504 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.4412, allocations: 5.507 MB / 0.5094 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/0.4412, allocations: 4 kB / 0.5094 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.4425, allocations: 288 kB / 0.5097 GB, free: 9.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001508/0.4441, allocations: 496.8 kB / 0.5101 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.4442, allocations: 39.98 kB / 0.5102 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008873/0.4531, allocations: 7.39 MB / 0.5174 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.4531, allocations: 4 kB / 0.5174 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007298/0.4604, allocations: 3.761 MB / 0.5211 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.4618, allocations: 410.4 kB / 0.5215 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006237/0.4624, allocations: 40.06 kB / 0.5215 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/0.4639, allocations: 99.88 kB / 0.5216 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000349/0.4643, allocations: 125 kB / 0.5217 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.4644, allocations: 51.98 kB / 0.5218 GB, free: 12.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002882/0.4673, allocations: 1.36 MB / 0.5231 GB, free: 11.53 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4673, allocations: 0 / 0.5231 GB, free: 11.53 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002616/0.4699, allocations: 0.5897 MB / 0.5237 GB, free: 10.94 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,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.007642/0.4776, allocations: 4.428 MB / 0.528 GB, free: 6.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005144/0.4827, allocations: 2.443 MB / 0.5304 GB, free: 3.957 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.4827, allocations: 0 / 0.5304 GB, free: 3.957 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002886/0.4856, allocations: 1.545 MB / 0.5319 GB, free: 2.375 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/0.4889, allocations: 0.4916 MB / 0.5324 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2444/0.7334, allocations: 21.61 MB / 0.5535 GB, free: 99.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/0.7349, allocations: 2.137 MB / 0.5556 GB, free: 97.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001366/0.7363, allocations: 470.5 kB / 0.556 GB, free: 96.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/0.7374, allocations: 1.062 MB / 0.557 GB, free: 95.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.964e-06/0.7374, allocations: 3.281 kB / 0.5571 GB, free: 95.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/0.8404, allocations: 55.04 MB / 0.6108 GB, free: 41.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.03/16.87, allocations: 7.5 kB / 0.6108 GB, free: 41.18 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.356710304971784]