Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001585/0.001585, 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.001031/0.001031, allocations: 170.3 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.8892/0.8892, allocations: 177.1 MB / 204.2 MB, free: 5.762 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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.197e-05, allocations: 4.812 kB / 324.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.007575/0.007597, allocations: 8.632 MB / 333.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004972/0.01257, allocations: 3.569 MB / 336.8 MB, free: 3.648 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009579/0.01353, allocations: 59.62 kB / 336.9 MB, free: 3.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.0149, allocations: 0.6713 MB / 337.5 MB, free: 2.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.01662, allocations: 0.9509 MB / 338.5 MB, free: 1.957 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007556/0.01738, allocations: 475 kB / 339 MB, free: 1.492 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.01966, allocations: 2.766 MB / 341.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.02072, allocations: 1.07 MB / 342.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.02263, allocations: 1.762 MB / 344.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001527/0.02416, allocations: 1.313 MB / 345.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005086/0.02466, allocations: 308 kB / 346.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008944/0.02556, allocations: 0.5541 MB / 346.7 MB, free: 9.648 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007313/0.02629, allocations: 1.067 MB / 347.8 MB, free: 8.578 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.02742, allocations: 1.005 MB / 348.8 MB, free: 7.57 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00404/0.03146, allocations: 4.331 MB / 353.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.03147, allocations: 0 / 353.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.03147, allocations: 0 / 353.1 MB, free: 3.227 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001361/0.03161, allocations: 0 / 353.1 MB, free: 3.227 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005738/0.03734, allocations: 3.165 MB / 356.3 MB, free: 8 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.03739, allocations: 8.031 kB / 356.3 MB, free: 0 / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005911/0.03798, allocations: 367.3 kB / 356.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008205/0.0388, allocations: 378.8 kB / 357 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.04116, allocations: 1.673 MB / 358.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-05/0.04125, allocations: 152.5 kB / 358.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002595/0.04151, allocations: 215.9 kB / 359.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003335/0.04484, allocations: 2.832 MB / 361.9 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.369e-05/0.04489, allocations: 7.953 kB / 361.9 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.04502, allocations: 91.98 kB / 362 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.341e-05/0.0451, allocations: 96.03 kB / 362.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.048, allocations: 2.292 MB / 364.4 MB, free: 7.734 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009741/0.05774, allocations: 7.426 MB / 371.8 MB, free: 96 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.05982, allocations: 1.309 MB / 373.1 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.06101, allocations: 1.024 MB / 374.1 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.06117, allocations: 52.97 kB / 374.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.0612, allocations: 47.5 kB / 374.2 MB, free: 13.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 3.356e-06/0.0612, allocations: 0 / 374.2 MB, free: 13.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=132): time 0.008202/0.0694, allocations: 6.11 MB / 380.3 MB, free: 7.492 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.06944, allocations: 64.72 kB / 380.4 MB, free: 7.418 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002043/0.07149, allocations: 2.185 MB / 382.6 MB, free: 5.188 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.845e-05/0.07157, allocations: 53.7 kB / 382.6 MB, free: 5.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005683/0.07213, allocations: 1.149 MB / 383.8 MB, free: 3.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000264/0.0724, allocations: 479.9 kB / 384.3 MB, free: 3.496 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002659/0.07266, allocations: 239.5 kB / 384.5 MB, free: 3.254 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.872e-05/0.07276, allocations: 361.9 kB / 384.8 MB, free: 2.895 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008274/0.07359, allocations: 0.7535 MB / 385.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.07463, allocations: 1.013 MB / 386.6 MB, free: 1.035 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.07639, allocations: 1.865 MB / 388.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.0764, allocations: 4 kB / 388.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003148/0.07955, allocations: 2.746 MB / 391.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.07957, allocations: 8 kB / 391.2 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.07958, allocations: 16.19 kB / 391.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.08076, allocations: 0.785 MB / 392 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005808/0.08134, allocations: 271.5 kB / 392.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007929/0.08927, allocations: 9.282 MB / 401.6 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009262/0.09019, allocations: 99.77 kB / 401.7 MB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.0903, allocations: 55.98 kB / 401.7 MB, free: 1.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009907/0.09129, allocations: 0.7433 MB / 402.5 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.09159, allocations: 210.6 kB / 402.7 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.09457, allocations: 2.481 MB / 405.2 MB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.09459, allocations: 16 kB / 405.2 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.0946, allocations: 4 kB / 405.2 MB, free: 14.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.09461, allocations: 7.969 kB / 405.2 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00602/0.1006, allocations: 4.657 MB / 409.8 MB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.1006, allocations: 3.938 kB / 409.9 MB, free: 9.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/0.1012, allocations: 219.8 kB / 410.1 MB, free: 9.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.1022, allocations: 0.6531 MB / 410.7 MB, free: 8.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.533e-05/0.1023, allocations: 39.97 kB / 410.8 MB, free: 8.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005766/0.108, allocations: 8.335 MB / 419.1 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.108, allocations: 4.031 kB / 419.1 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003908/0.1119, allocations: 3.526 MB / 422.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006459/0.1126, allocations: 378.4 kB / 423 MB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.1127, allocations: 24 kB / 423 MB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005025/0.1132, allocations: 83.89 kB / 423.1 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.1134, allocations: 112.7 kB / 423.2 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/0.1135, allocations: 39.98 kB / 423.2 MB, free: 11.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001468/0.115, allocations: 1.532 MB / 424.8 MB, free: 9.988 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.115, allocations: 0 / 424.8 MB, free: 9.988 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001256/0.1162, allocations: 0.5313 MB / 425.3 MB, free: 9.461 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (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,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004593/0.1208, allocations: 4.477 MB / 429.8 MB, free: 5.086 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.1237, allocations: 2.299 MB / 432.1 MB, free: 2.758 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.1237, allocations: 4 kB / 432.1 MB, free: 2.754 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.1252, allocations: 1.455 MB / 433.5 MB, free: 1.254 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.1266, allocations: 457.9 kB / 434 MB, free: 0.8125 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1608/0.2874, allocations: 21.16 MB / 455.2 MB, free: 113 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009661/0.2883, allocations: 1.386 MB / 456.5 MB, free: 112.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007932/0.2891, allocations: 403.4 kB / 456.9 MB, free: 112.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007489/0.2899, allocations: 0.9842 MB / 457.9 MB, free: 112.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.743e-06/0.2899, allocations: 0 / 457.9 MB, free: 112.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06603/0.3559, allocations: 54.9 MB / 0.5008 GB, free: 62.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/8.554, allocations: 15.58 kB / 0.5008 GB, free: 62.08 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 15.210505899041891]