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.001393/0.001393, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 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.001498/0.001498, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 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 1.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001676/0.001676, allocations: 47.92 kB / 377.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.272, allocations: 53.36 MB / 431.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01294/0.285, allocations: 9.815 MB / 441 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007274/0.2923, allocations: 3.797 MB / 444.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.2935, allocations: 63.56 kB / 444.9 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002033/0.2956, allocations: 0.6989 MB / 445.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002756/0.2983, allocations: 0.9323 MB / 446.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.2996, allocations: 483.1 kB / 447 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003651/0.3033, allocations: 2.674 MB / 449.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.3052, allocations: 1.109 MB / 450.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/0.3071, allocations: 1.234 MB / 452 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.3097, allocations: 1.553 MB / 453.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007047/0.3104, allocations: 307.9 kB / 453.8 MB, free: 60 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.312, allocations: 0.6166 MB / 454.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001383/0.3134, allocations: 1.044 MB / 455.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002207/0.3156, allocations: 1.489 MB / 457 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005802/0.3214, allocations: 4.32 MB / 461.3 MB, free: 8.562 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3214, allocations: 0 / 461.3 MB, free: 8.562 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3214, allocations: 0 / 461.3 MB, free: 8.562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001168/0.3215, allocations: 0 / 461.3 MB, free: 8.562 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.00724/0.3288, allocations: 3.193 MB / 464.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3288, allocations: 12.03 kB / 464.5 MB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005303/0.3293, allocations: 343.5 kB / 464.8 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.3304, allocations: 382.8 kB / 465.2 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003186/0.3336, allocations: 1.665 MB / 466.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.3338, allocations: 160.1 kB / 467 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000343/0.3341, allocations: 211.9 kB / 467.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004709/0.3388, allocations: 2.727 MB / 470 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.723e-05/0.3389, allocations: 11.89 kB / 470 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/0.3391, allocations: 83.98 kB / 470.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.3392, allocations: 100 kB / 470.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004177/0.3434, allocations: 2.296 MB / 472.5 MB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/0.3571, allocations: 8.081 MB / 480.5 MB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003082/0.3602, allocations: 1.318 MB / 481.8 MB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.3622, allocations: 1.027 MB / 482.9 MB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002173/0.3624, allocations: 48.94 kB / 482.9 MB, free: 2.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.3624, allocations: 47.56 kB / 483 MB, free: 2.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.276e-06/0.3624, allocations: 0 / 483 MB, free: 2.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.0132/0.3756, allocations: 6.121 MB / 489.1 MB, free: 12.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.3757, allocations: 64.72 kB / 489.2 MB, free: 12.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003098/0.3788, allocations: 2.181 MB / 491.3 MB, free: 9.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.3789, allocations: 45.7 kB / 491.4 MB, free: 9.922 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009485/0.3799, allocations: 1.153 MB / 492.5 MB, free: 8.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004161/0.3803, allocations: 483.8 kB / 493 MB, free: 8.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004054/0.3807, allocations: 243.6 kB / 493.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3808, allocations: 361.9 kB / 493.6 MB, free: 7.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.3822, allocations: 0.7651 MB / 494.4 MB, free: 6.914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.3837, allocations: 1.009 MB / 495.4 MB, free: 5.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002987/0.3867, allocations: 1.861 MB / 497.2 MB, free: 3.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.3867, allocations: 8 kB / 497.2 MB, free: 3.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005496/0.3922, allocations: 2.746 MB / 500 MB, free: 1.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.3922, allocations: 12.23 kB / 500 MB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/0.3923, allocations: 12 kB / 0.4883 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002158/0.3944, allocations: 0.785 MB / 0.4891 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.3956, allocations: 271.6 kB / 0.4893 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.4087, allocations: 9.395 MB / 0.4985 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4101, allocations: 88.16 kB / 0.4986 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.4103, allocations: 63.97 kB / 0.4986 GB, free: 6.234 MB / 414.1 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.001476/0.4118, allocations: 0.7434 MB / 0.4994 GB, free: 5.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004439/0.4122, allocations: 214.6 kB / 0.4996 GB, free: 5.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004675/0.4169, allocations: 2.481 MB / 0.502 GB, free: 2.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.4169, allocations: 12 kB / 0.502 GB, free: 2.758 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4169, allocations: 11.98 kB / 0.502 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.4169, allocations: 3.984 kB / 0.502 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008934/0.4259, allocations: 4.926 MB / 0.5068 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.4259, allocations: 4 kB / 0.5068 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.4269, allocations: 211.6 kB / 0.507 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001758/0.4286, allocations: 0.6527 MB / 0.5077 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.992e-05/0.4287, allocations: 39.97 kB / 0.5077 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.4389, allocations: 8.402 MB / 0.5159 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4389, allocations: 0 / 0.5159 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006607/0.4455, allocations: 3.53 MB / 0.5194 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.4467, allocations: 374.5 kB / 0.5197 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003886/0.4471, allocations: 43.92 kB / 0.5198 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.4482, allocations: 79.91 kB / 0.5198 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003212/0.4485, allocations: 112.7 kB / 0.5199 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.4486, allocations: 39.98 kB / 0.52 GB, free: 15.86 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002543/0.4511, allocations: 1.536 MB / 0.5215 GB, free: 14.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4511, allocations: 0 / 0.5215 GB, free: 14.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001957/0.4531, allocations: 0.5273 MB / 0.522 GB, free: 13.78 MB / 446.1 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.008383/0.4615, allocations: 4.451 MB / 0.5263 GB, free: 9.406 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004663/0.4661, allocations: 2.306 MB / 0.5286 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.4661, allocations: 0 / 0.5286 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.4689, allocations: 1.475 MB / 0.53 GB, free: 5.559 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.4717, allocations: 454.8 kB / 0.5305 GB, free: 5.121 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2423/0.714, allocations: 21.17 MB / 0.5511 GB, free: 96.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.7153, allocations: 1.968 MB / 0.5531 GB, free: 94.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.7164, allocations: 397.1 kB / 0.5534 GB, free: 94.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/0.7174, allocations: 0.9841 MB / 0.5544 GB, free: 93.53 MB / 446.1 MB Notification: Performance of SimCode: time 1.393e-06/0.7174, allocations: 0 / 0.5544 GB, free: 93.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08948/0.8069, allocations: 52.85 MB / 0.606 GB, free: 41.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.75/26.55, allocations: 8 kB / 0.606 GB, free: 41.2 MB / 446.1 MB " [Timeout remaining time 633] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 36.72335759294219]