Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.0008327/0.0008327, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007877/0.0007877, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8812/0.8812, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.SMEE_DOL,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.521e-05/1.7e-05, allocations: 10.22 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01178/0.0118, allocations: 10.43 MB / 335 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006186/0.01798, allocations: 3.776 MB / 338.8 MB, free: 1.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001229/0.01921, allocations: 83.44 kB / 338.9 MB, free: 1.582 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001842/0.02105, allocations: 0.8466 MB / 339.7 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001957/0.02301, allocations: 1.075 MB / 340.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009561/0.02397, allocations: 0.5381 MB / 341.3 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002839/0.02681, allocations: 3.586 MB / 344.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.02828, allocations: 1.491 MB / 346.4 MB, free: 9.953 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002045/0.03033, allocations: 2.315 MB / 348.7 MB, free: 7.633 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.03229, allocations: 1.679 MB / 350.4 MB, free: 5.949 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005358/0.03283, allocations: 408 kB / 350.8 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007599/0.03359, allocations: 0.6245 MB / 351.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007803/0.03437, allocations: 1.2 MB / 352.6 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009926/0.03536, allocations: 1.263 MB / 353.9 MB, free: 2.457 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003852/0.03921, allocations: 5.461 MB / 359.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.03922, allocations: 0 / 359.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.03922, allocations: 4 kB / 359.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.105e-05/0.03926, allocations: 0 / 359.4 MB, free: 12.98 MB / 330.7 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.004444/0.04371, allocations: 3.697 MB / 363.1 MB, free: 9.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.04376, allocations: 16.03 kB / 363.1 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003521/0.04411, allocations: 388 kB / 363.5 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000918/0.04503, allocations: 494.5 kB / 363.9 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002356/0.04738, allocations: 1.906 MB / 365.8 MB, free: 6.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.04751, allocations: 201.8 kB / 366 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002785/0.04779, allocations: 271.9 kB / 366.3 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003843/0.05163, allocations: 3.654 MB / 370 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.713e-05/0.05168, allocations: 4 kB / 370 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/0.05186, allocations: 112 kB / 370.1 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-05/0.05195, allocations: 121.2 kB / 370.2 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003391/0.05535, allocations: 2.964 MB / 373.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009708/0.06505, allocations: 9.966 MB / 383.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.06673, allocations: 1.508 MB / 384.6 MB, free: 3.148 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.06796, allocations: 1.098 MB / 385.7 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001653/0.06812, allocations: 53.27 kB / 385.8 MB, free: 1.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.06815, allocations: 51.81 kB / 385.8 MB, free: 1.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 2.575e-06/0.06815, allocations: 0 / 385.8 MB, free: 1.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=148): time 0.009314/0.07747, allocations: 7.096 MB / 392.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.07751, allocations: 72.66 kB / 393 MB, free: 10.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.07931, allocations: 2.015 MB / 395 MB, free: 8.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.07938, allocations: 49.7 kB / 395.1 MB, free: 8.625 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006744/0.08006, allocations: 1.343 MB / 396.4 MB, free: 7.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00027/0.08033, allocations: 0.5267 MB / 396.9 MB, free: 6.738 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003279/0.08065, allocations: 323.4 kB / 397.2 MB, free: 6.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.08072, allocations: 309.1 kB / 397.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/0.08166, allocations: 0.8862 MB / 398.4 MB, free: 5.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.08283, allocations: 1.376 MB / 399.8 MB, free: 3.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/0.08503, allocations: 2.373 MB / 402.2 MB, free: 1.062 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.08504, allocations: 12 kB / 402.2 MB, free: 1.051 MB / 362.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.003072/0.08811, allocations: 2.904 MB / 405.1 MB, free: 14.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.08813, allocations: 12 kB / 405.1 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.08815, allocations: 19.94 kB / 405.1 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006735/0.08883, allocations: 470.5 kB / 405.6 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008382/0.08967, allocations: 423.3 kB / 406 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/0.09403, allocations: 5.845 MB / 411.8 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007493/0.09478, allocations: 123.8 kB / 412 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.687e-05/0.09488, allocations: 76 kB / 412 MB, free: 6.949 MB / 378.7 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.0009736/0.09585, allocations: 0.8525 MB / 412.9 MB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002254/0.09608, allocations: 218.6 kB / 413.1 MB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002645/0.09872, allocations: 2.5 MB / 415.6 MB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.09874, allocations: 20 kB / 415.6 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.09875, allocations: 4 kB / 415.6 MB, free: 3.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.09876, allocations: 11.97 kB / 415.6 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005552/0.1043, allocations: 5.195 MB / 420.8 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1043, allocations: 4 kB / 420.8 MB, free: 14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006129/0.1049, allocations: 280 kB / 421.1 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007342/0.1057, allocations: 0.498 MB / 421.6 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.668e-05/0.1057, allocations: 35.98 kB / 421.6 MB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00485/0.1106, allocations: 7.314 MB / 429 MB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1106, allocations: 7.938 kB / 429 MB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003789/0.1144, allocations: 3.753 MB / 432.7 MB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000615/0.115, allocations: 410.4 kB / 433.1 MB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/0.1151, allocations: 43.98 kB / 433.2 MB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.1157, allocations: 99.83 kB / 433.3 MB, free: 1.152 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.1159, allocations: 121 kB / 433.4 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.085e-05/0.116, allocations: 47.98 kB / 433.4 MB, free: 0.9844 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001296/0.1173, allocations: 1.368 MB / 434.8 MB, free: 15.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1173, allocations: 0 / 434.8 MB, free: 15.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001235/0.1185, allocations: 0.5898 MB / 435.4 MB, free: 15 MB / 410.7 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.004428/0.1229, allocations: 4.419 MB / 439.8 MB, free: 10.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/0.1256, allocations: 2.455 MB / 442.3 MB, free: 8.027 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1256, allocations: 0 / 442.3 MB, free: 8.027 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.1271, allocations: 1.549 MB / 443.8 MB, free: 6.441 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.1284, allocations: 0.4897 MB / 444.3 MB, free: 5.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1611/0.2894, allocations: 21.6 MB / 465.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009151/0.2903, allocations: 1.585 MB / 467.5 MB, free: 105.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007676/0.2911, allocations: 475.4 kB / 467.9 MB, free: 104.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007462/0.2919, allocations: 1.067 MB / 469 MB, free: 103.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.2919, allocations: 0 / 469 MB, free: 103.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06037/0.3522, allocations: 56.98 MB / 0.5137 GB, free: 47.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.566/8.919, allocations: 11.67 kB / 0.5137 GB, free: 47.37 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.156542317010462]