Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.001355/0.001355, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001547/0.001547, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.IMS_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 47.92 kB / 377.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2574, allocations: 53.38 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.0135/0.2709, allocations: 10.41 MB / 441.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006969/0.2779, allocations: 3.638 MB / 445.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.2792, allocations: 95.38 kB / 445.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001957/0.2812, allocations: 0.8626 MB / 446.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.2839, allocations: 1.15 MB / 447.3 MB, free: 6.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.285, allocations: 0.4993 MB / 447.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004798/0.2898, allocations: 4.249 MB / 452 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002444/0.2922, allocations: 1.837 MB / 453.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/0.2948, allocations: 1.967 MB / 455.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003722/0.2985, allocations: 2.398 MB / 458.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.2996, allocations: 0.4961 MB / 458.7 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001608/0.3012, allocations: 0.5936 MB / 459.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.3029, allocations: 1.41 MB / 460.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002701/0.3056, allocations: 1.789 MB / 462.5 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008048/0.3136, allocations: 6.626 MB / 469.1 MB, free: 420 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.3136, allocations: 0 / 469.1 MB, free: 420 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3136, allocations: 0 / 469.1 MB, free: 420 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002071/0.3138, allocations: 0 / 469.1 MB, free: 420 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01113/0.325, allocations: 4.352 MB / 473.5 MB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.325, allocations: 8.031 kB / 473.5 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000736/0.3257, allocations: 454.5 kB / 473.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.3274, allocations: 490.2 kB / 474.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005608/0.333, allocations: 2.355 MB / 476.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/0.3332, allocations: 230.1 kB / 477 MB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006515/0.3338, allocations: 308 kB / 477.3 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008156/0.342, allocations: 4.603 MB / 481.9 MB, free: 3.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-05/0.3421, allocations: 11.89 kB / 481.9 MB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003039/0.3424, allocations: 124 kB / 482 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000142/0.3425, allocations: 130 kB / 482.1 MB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006906/0.3494, allocations: 3.779 MB / 485.9 MB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02383/0.3733, allocations: 12.19 MB / 498.1 MB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003323/0.3766, allocations: 2.079 MB / 0.4885 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002756/0.3793, allocations: 1.567 MB / 0.49 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002314/0.3796, allocations: 49.28 kB / 0.49 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.3796, allocations: 47.88 kB / 0.4901 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=164): time 3.647e-06/0.3796, allocations: 4 kB / 0.4901 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=180): time 0.01876/0.3984, allocations: 8.495 MB / 0.4984 GB, free: 6.488 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.3985, allocations: 77.34 kB / 0.4985 GB, free: 6.398 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003768/0.4022, allocations: 2.393 MB / 0.5008 GB, free: 3.977 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.4024, allocations: 61.7 kB / 0.5009 GB, free: 3.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001218/0.4037, allocations: 1.509 MB / 0.5023 GB, free: 2.387 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006569/0.4043, allocations: 0.6391 MB / 0.503 GB, free: 1.742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006428/0.405, allocations: 367.5 kB / 0.5033 GB, free: 1.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4051, allocations: 301.1 kB / 0.5036 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001859/0.407, allocations: 1.12 MB / 0.5047 GB, free: 15.96 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002197/0.4092, allocations: 1.574 MB / 0.5062 GB, free: 14.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004195/0.4133, allocations: 2.784 MB / 0.5089 GB, free: 11.25 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.4134, allocations: 7.938 kB / 0.509 GB, free: 11.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006575/0.4199, allocations: 3.594 MB / 0.5125 GB, free: 7.621 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.534e-05/0.42, allocations: 15.94 kB / 0.5125 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.614e-05/0.42, allocations: 16 kB / 0.5125 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/0.4221, allocations: 0.7969 MB / 0.5133 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.424, allocations: 455.3 kB / 0.5137 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.4357, allocations: 10.58 MB / 0.524 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002309/0.438, allocations: 123.8 kB / 0.5242 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/0.4383, allocations: 83.92 kB / 0.5242 GB, free: 10.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002066/0.4403, allocations: 1.09 MB / 0.5253 GB, free: 9.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006046/0.4409, allocations: 266.3 kB / 0.5256 GB, free: 9.613 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005844/0.4468, allocations: 3.293 MB / 0.5288 GB, free: 6.281 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.4468, allocations: 16 kB / 0.5288 GB, free: 6.266 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.4468, allocations: 8 kB / 0.5288 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.4468, allocations: 11.97 kB / 0.5288 GB, free: 6.246 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2193/0.6661, allocations: 6.418 MB / 0.5351 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.947e-05/0.6662, allocations: 6.156 kB / 0.5351 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/0.6679, allocations: 293 kB / 0.5354 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.6704, allocations: 0.9213 MB / 0.5363 GB, free: 99.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/0.6706, allocations: 44.97 kB / 0.5363 GB, free: 99.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.6808, allocations: 13.81 MB / 0.5498 GB, free: 89.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6808, allocations: 7.875 kB / 0.5498 GB, free: 89.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005883/0.6867, allocations: 4.849 MB / 0.5545 GB, free: 87.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/0.6881, allocations: 0.5183 MB / 0.555 GB, free: 87.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003745/0.6885, allocations: 35.25 kB / 0.5551 GB, free: 87.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.6897, allocations: 120.5 kB / 0.5552 GB, free: 87.03 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003598/0.6901, allocations: 160.4 kB / 0.5553 GB, free: 87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.6902, allocations: 50.33 kB / 0.5554 GB, free: 86.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001864/0.6921, allocations: 1.641 MB / 0.557 GB, free: 86.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6921, allocations: 0 / 0.557 GB, free: 86.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001822/0.6939, allocations: 0.7034 MB / 0.5577 GB, free: 86.13 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.005854/0.6997, allocations: 5.533 MB / 0.5631 GB, free: 81.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003874/0.7036, allocations: 3.339 MB / 0.5663 GB, free: 78.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.7036, allocations: 0 / 0.5663 GB, free: 78.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002591/0.7062, allocations: 2.354 MB / 0.5686 GB, free: 75.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002861/0.7091, allocations: 0.7096 MB / 0.5693 GB, free: 74.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0303/0.7394, allocations: 26.41 MB / 0.5951 GB, free: 47.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.741, allocations: 1.983 MB / 0.5971 GB, free: 45.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001513/0.7425, allocations: 0.5828 MB / 0.5976 GB, free: 45.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/0.7438, allocations: 1.261 MB / 0.5989 GB, free: 44.09 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/0.7438, allocations: 4 kB / 0.5989 GB, free: 44.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1448/0.8886, allocations: 72.13 MB / 0.6693 GB, free: 4.656 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.73, allocations: 11.31 kB / 0.6693 GB, free: 4.648 MB / 478.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMS_Start/IMS_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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: 20.333713412022917]