Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.0008589/0.0008589, allocations: 76.36 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.0009124/0.0009124, allocations: 160.9 kB / 23.95 MB, free: 0.6133 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.8839/0.8839, allocations: 177 MB / 204.1 MB, free: 5.758 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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 324.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.199e-05/1.326e-05, allocations: 2.281 kB / 324.6 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.008387/0.008401, allocations: 11.39 MB / 336 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005371/0.01377, allocations: 4.062 MB / 340 MB, free: 216 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000841/0.01461, allocations: 103.3 kB / 340.1 MB, free: 112 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.01612, allocations: 0.9663 MB / 341.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001811/0.01793, allocations: 1.308 MB / 342.4 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.01861, allocations: 0.5343 MB / 342.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003097/0.0217, allocations: 4.85 MB / 347.8 MB, free: 8.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.02344, allocations: 2.007 MB / 349.8 MB, free: 6.344 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002954/0.02639, allocations: 3.195 MB / 353 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001922/0.02831, allocations: 2.299 MB / 355.3 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004604/0.02877, allocations: 0.5547 MB / 355.8 MB, free: 304 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006962/0.02947, allocations: 0.656 MB / 356.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009008/0.03037, allocations: 1.589 MB / 358.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.0316, allocations: 1.731 MB / 359.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004365/0.03597, allocations: 7.58 MB / 367.4 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.03597, allocations: 0 / 367.4 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.03597, allocations: 0 / 367.4 MB, free: 4.711 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.903e-05/0.03604, allocations: 0 / 367.4 MB, free: 4.711 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: 940 * Number of variables: 940 Notification: Performance of Generate backend data structure: time 0.005208/0.04125, allocations: 4.717 MB / 372.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.04129, allocations: 15.92 kB / 372.1 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000443/0.04173, allocations: 0.5021 MB / 372.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008419/0.04257, allocations: 0.5565 MB / 373.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002725/0.0453, allocations: 2.54 MB / 375.7 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.04543, allocations: 263.5 kB / 376 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003353/0.04577, allocations: 360.3 kB / 376.3 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005099/0.05087, allocations: 5.315 MB / 381.6 MB, free: 6.188 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.645e-05/0.05092, allocations: 7.938 kB / 381.6 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/0.05116, allocations: 152 kB / 381.8 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/0.05129, allocations: 195.1 kB / 382 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004628/0.05591, allocations: 4.302 MB / 386.3 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/0.06918, allocations: 13.43 MB / 399.7 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.0717, allocations: 2.7 MB / 402.4 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.07365, allocations: 1.866 MB / 404.3 MB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.07382, allocations: 61.95 kB / 404.3 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.07386, allocations: 56.55 kB / 404.4 MB, free: 15.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=198): time 3.918e-06/0.07386, allocations: 3.938 kB / 404.4 MB, free: 15.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=218): time 0.01202/0.08589, allocations: 9.616 MB / 414 MB, free: 5.484 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.08593, allocations: 73.41 kB / 414.1 MB, free: 5.402 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002548/0.08848, allocations: 2.545 MB / 416.6 MB, free: 2.836 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.08858, allocations: 65.7 kB / 416.7 MB, free: 2.766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000839/0.08942, allocations: 1.662 MB / 418.4 MB, free: 1.086 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/0.08985, allocations: 0.763 MB / 419.1 MB, free: 324 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004603/0.09031, allocations: 408.5 kB / 419.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.085e-05/0.09038, allocations: 305.1 kB / 419.8 MB, free: 15.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.09168, allocations: 1.301 MB / 421.1 MB, free: 14.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.09318, allocations: 1.774 MB / 422.9 MB, free: 12.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002875/0.09606, allocations: 3.219 MB / 426.1 MB, free: 8.938 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.09607, allocations: 11.94 kB / 426.1 MB, free: 8.926 MB / 394.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.004333/0.1004, allocations: 4.069 MB / 430.2 MB, free: 4.832 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.1004, allocations: 12 kB / 430.2 MB, free: 4.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.1004, allocations: 12 kB / 430.2 MB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.1019, allocations: 0.8829 MB / 431.1 MB, free: 3.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.103, allocations: 0.5305 MB / 431.6 MB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.1096, allocations: 9.058 MB / 440.7 MB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.1108, allocations: 119.8 kB / 440.8 MB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.1109, allocations: 84.09 kB / 440.9 MB, free: 9.785 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001806/0.1127, allocations: 1.223 MB / 442.1 MB, free: 8.551 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/0.1131, allocations: 294.1 kB / 442.4 MB, free: 8.262 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.117, allocations: 3.695 MB / 446.1 MB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.117, allocations: 20 kB / 446.1 MB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.117, allocations: 8 kB / 446.1 MB, free: 4.508 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.117, allocations: 11.95 kB / 446.1 MB, free: 4.496 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1464/0.2634, allocations: 7.542 MB / 453.7 MB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.2635, allocations: 0 / 453.7 MB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008643/0.2643, allocations: 395 kB / 454.1 MB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/0.266, allocations: 0.9215 MB / 455 MB, free: 111.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.2661, allocations: 55.59 kB / 455 MB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005619/0.2717, allocations: 10.59 MB / 465.6 MB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2717, allocations: 3.938 kB / 465.6 MB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004619/0.2763, allocations: 5.507 MB / 471.1 MB, free: 100.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009117/0.2772, allocations: 0.5791 MB / 471.7 MB, free: 99.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002111/0.2774, allocations: 51.75 kB / 471.8 MB, free: 99.85 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.2781, allocations: 114.5 kB / 471.9 MB, free: 99.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.2784, allocations: 193.1 kB / 472.1 MB, free: 99.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-05/0.2785, allocations: 55.94 kB / 472.1 MB, free: 99.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001433/0.2799, allocations: 1.743 MB / 473.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2799, allocations: 0 / 473.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001404/0.2813, allocations: 0.7996 MB / 474.7 MB, free: 97.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(3,25,88.9%), (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.004555/0.2859, allocations: 6.191 MB / 480.9 MB, free: 91.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.2895, allocations: 3.612 MB / 484.5 MB, free: 87.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.2895, allocations: 4 kB / 484.5 MB, free: 87.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/0.2916, allocations: 2.31 MB / 486.8 MB, free: 85.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.2937, allocations: 0.7935 MB / 487.6 MB, free: 84.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0306/0.3243, allocations: 29.68 MB / 0.5051 GB, free: 54.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/0.3258, allocations: 2.26 MB / 0.5073 GB, free: 51.85 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001238/0.327, allocations: 0.6803 MB / 0.508 GB, free: 51.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.328, allocations: 1.418 MB / 0.5094 GB, free: 49.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.703e-06/0.328, allocations: 4 kB / 0.5094 GB, free: 49.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09208/0.4201, allocations: 78.32 MB / 0.5859 GB, free: 3.961 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.331/9.751, allocations: 7.781 kB / 0.5859 GB, free: 3.957 MB / 442.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.94739523716271]