Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.0008553/0.0008553, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008433/0.0008433, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8667/0.8667, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.299e-05/1.44e-05, allocations: 3.266 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.00686/0.006874, allocations: 7.958 MB / 332.5 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003692/0.01057, allocations: 2.785 MB / 335.3 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005677/0.01113, allocations: 59.62 kB / 335.3 MB, free: 5.051 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.01219, allocations: 0.5977 MB / 335.9 MB, free: 4.449 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.01349, allocations: 0.7994 MB / 336.7 MB, free: 3.645 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.01394, allocations: 347.3 kB / 337.1 MB, free: 3.305 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001962/0.01591, allocations: 2.461 MB / 339.5 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009554/0.01686, allocations: 0.9774 MB / 340.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.01834, allocations: 1.598 MB / 342.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.01946, allocations: 1.177 MB / 343.3 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002332/0.01969, allocations: 280 kB / 343.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005151/0.02021, allocations: 379.7 kB / 343.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005182/0.02072, allocations: 0.8375 MB / 344.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006638/0.02139, allocations: 0.8691 MB / 345.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002541/0.02393, allocations: 3.751 MB / 349.4 MB, free: 6.914 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.02393, allocations: 0 / 349.4 MB, free: 6.914 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.02393, allocations: 0 / 349.4 MB, free: 6.914 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.614e-05/0.02396, allocations: 0 / 349.4 MB, free: 6.914 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.002733/0.02669, allocations: 2.56 MB / 351.9 MB, free: 4.312 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.02673, allocations: 15.98 kB / 352 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002284/0.02696, allocations: 266 kB / 352.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005115/0.02747, allocations: 299.3 kB / 352.5 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.02939, allocations: 1.348 MB / 353.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/0.02946, allocations: 132 kB / 354 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.02964, allocations: 188.3 kB / 354.2 MB, free: 2.027 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.03224, allocations: 2.514 MB / 356.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.03227, allocations: 4 kB / 356.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.03239, allocations: 72 kB / 356.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.551e-05/0.03245, allocations: 99.34 kB / 356.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002129/0.03458, allocations: 2.009 MB / 358.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006533/0.04111, allocations: 6.664 MB / 365.5 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.04228, allocations: 0.9886 MB / 366.5 MB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009875/0.04327, allocations: 0.8655 MB / 367.4 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.0434, allocations: 36.97 kB / 367.4 MB, free: 4.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.04342, allocations: 47.55 kB / 367.5 MB, free: 4.445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=84): time 2.094e-06/0.04343, allocations: 4 kB / 367.5 MB, free: 4.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=100): time 0.005598/0.04902, allocations: 4.684 MB / 372.2 MB, free: 15.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.04906, allocations: 68.34 kB / 372.2 MB, free: 15.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.05028, allocations: 1.4 MB / 373.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.327e-05/0.05034, allocations: 45.7 kB / 373.7 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004517/0.05079, allocations: 0.9226 MB / 374.6 MB, free: 13.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.05098, allocations: 364.9 kB / 374.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/0.05121, allocations: 210.9 kB / 375.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.05134, allocations: 357.9 kB / 375.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/0.05201, allocations: 0.6349 MB / 376.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007291/0.05274, allocations: 0.922 MB / 377.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.05415, allocations: 1.645 MB / 378.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.05415, allocations: 0 / 378.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002482/0.05663, allocations: 2.387 MB / 381.1 MB, free: 6.465 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.05665, allocations: 8 kB / 381.1 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.05666, allocations: 8 kB / 381.1 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.05768, allocations: 0.7212 MB / 381.8 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/0.05813, allocations: 227.7 kB / 382 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006718/0.06485, allocations: 8.433 MB / 390.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.06534, allocations: 80.08 kB / 390.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-05/0.0654, allocations: 51.92 kB / 390.6 MB, free: 12.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006569/0.06605, allocations: 0.6302 MB / 391.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.0662, allocations: 151 kB / 391.4 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.06813, allocations: 1.897 MB / 393.3 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.06813, allocations: 12 kB / 393.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.06814, allocations: 4 kB / 393.3 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.06814, allocations: 7.969 kB / 393.3 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003786/0.07193, allocations: 3.766 MB / 397.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.07193, allocations: 0 / 397.1 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.07232, allocations: 179.8 kB / 397.2 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006391/0.07296, allocations: 467.1 kB / 397.7 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.07301, allocations: 23.98 kB / 397.7 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003783/0.0768, allocations: 6.331 MB / 404.1 MB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.0768, allocations: 4.031 kB / 404.1 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/0.07945, allocations: 2.765 MB / 406.8 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003906/0.07984, allocations: 294.9 kB / 407.1 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.07994, allocations: 27.98 kB / 407.1 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003747/0.08032, allocations: 71.92 kB / 407.2 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.08046, allocations: 80.78 kB / 407.3 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-05/0.08051, allocations: 31.98 kB / 407.3 MB, free: 11.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000843/0.08135, allocations: 0.9625 MB / 408.3 MB, free: 10.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.08135, allocations: 0 / 408.3 MB, free: 10.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000826/0.08217, allocations: 439.9 kB / 408.7 MB, free: 10.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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 {(2,12,100.0%), (1,1,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.002912/0.08509, allocations: 3.396 MB / 412.1 MB, free: 6.602 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.08701, allocations: 1.954 MB / 414.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.08702, allocations: 0 / 414.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.08826, allocations: 1.214 MB / 415.3 MB, free: 3.371 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.08927, allocations: 384.5 kB / 415.7 MB, free: 3.008 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.107, allocations: 16.34 MB / 432 MB, free: 2.184 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008148/0.1078, allocations: 1.126 MB / 433.1 MB, free: 1.016 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005279/0.1083, allocations: 316 kB / 433.4 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006061/0.109, allocations: 0.7034 MB / 434.1 MB, free: 0 / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.109, allocations: 0 / 434.1 MB, free: 0 / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1966/0.3056, allocations: 43.06 MB / 477.2 MB, free: 96.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.003/8.308, allocations: 10.62 kB / 477.2 MB, free: 96.48 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 11.134635303169489]