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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009165/0.0009166, allocations: 96.98 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000919/0.000919, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.0002569, allocations: 8 kB / 306.6 MB, free: 1.641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 51.49 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01177/0.1256, allocations: 10.45 MB / 368.5 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2409/0.3665, allocations: 4.125 MB / 372.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0026/0.3692, allocations: 66.69 kB / 372.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.3719, allocations: 0.8061 MB / 373.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004991/0.3769, allocations: 0.9898 MB / 374.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.3784, allocations: 327.3 kB / 374.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00678/0.3852, allocations: 2.958 MB / 377.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003813/0.3891, allocations: 2.591 MB / 380.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004461/0.3935, allocations: 1.442 MB / 381.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00565/0.3992, allocations: 1.801 MB / 383.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001575/0.4008, allocations: 241.4 kB / 383.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003172/0.404, allocations: 315 kB / 384.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.4057, allocations: 1.069 MB / 385.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002653/0.4084, allocations: 0.842 MB / 386.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007804/0.4162, allocations: 5.965 MB / 392 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4162, allocations: 0 / 392 MB, free: 5.402 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4162, allocations: 0 / 392 MB, free: 5.402 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002679/0.4165, allocations: 2.297 kB / 392 MB, free: 5.402 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01158/0.4281, allocations: 3.989 MB / 396 MB, free: 3.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.4281, allocations: 9.938 kB / 396 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002786/0.4309, allocations: 0.5416 MB / 396.6 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005715/0.4367, allocations: 2.423 MB / 399 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.4369, allocations: 272.1 kB / 399.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006191/0.4375, allocations: 353.6 kB / 399.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009476/0.447, allocations: 4.986 MB / 404.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.38e-05/0.4471, allocations: 7.938 kB / 404.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003453/0.4474, allocations: 142.7 kB / 404.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001792/0.4476, allocations: 183.1 kB / 404.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008122/0.4558, allocations: 4.294 MB / 409.2 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03039/0.4862, allocations: 14.94 MB / 424.2 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004492/0.4907, allocations: 4.198 MB / 428.4 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002883/0.491, allocations: 136.5 kB / 428.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.4911, allocations: 60.56 kB / 428.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 3.436e-06/0.4911, allocations: 4 kB / 428.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02135/0.5125, allocations: 10.32 MB / 438.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.399e-05/0.5126, allocations: 73.41 kB / 438.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004031/0.5166, allocations: 2.451 MB / 441.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003609/0.517, allocations: 65.7 kB / 441.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001202/0.5182, allocations: 1.619 MB / 443.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007367/0.519, allocations: 0.7296 MB / 443.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.5191, allocations: 54.95 kB / 443.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.5193, allocations: 394.6 kB / 444.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002036/0.5213, allocations: 1.316 MB / 445.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/0.5236, allocations: 1.79 MB / 447.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002324/0.5259, allocations: 1.568 MB / 448.9 MB, free: 268 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.526, allocations: 4 kB / 448.9 MB, free: 264 kB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007162/0.5331, allocations: 4.105 MB / 453 MB, free: 12.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.5332, allocations: 12 kB / 453 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/0.5332, allocations: 12.47 kB / 453.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/0.5362, allocations: 0.8852 MB / 453.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/0.5383, allocations: 0.5227 MB / 454.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01/0.5483, allocations: 8.947 MB / 463.4 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003026/0.5514, allocations: 127.8 kB / 463.5 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/0.5517, allocations: 80 kB / 463.6 MB, free: 1.145 MB / 366.1 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 (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 initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00287/0.5546, allocations: 1.216 MB / 464.8 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008159/0.5554, allocations: 280.5 kB / 465.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006391/0.5618, allocations: 3.758 MB / 468.9 MB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/0.5619, allocations: 23.95 kB / 468.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.5619, allocations: 8 kB / 468.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/0.5619, allocations: 7.969 kB / 468.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/0.5769, allocations: 8.084 MB / 477 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.5769, allocations: 4 kB / 477 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/0.5785, allocations: 383.8 kB / 477.4 MB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003098/0.5816, allocations: 0.9167 MB / 478.3 MB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001921/0.5819, allocations: 47.98 kB / 478.3 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/0.594, allocations: 10.47 MB / 488.8 MB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.83e-06/0.594, allocations: 3.938 kB / 488.8 MB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/0.607, allocations: 5.782 MB / 494.6 MB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003025/0.6101, allocations: 0.6382 MB / 495.2 MB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001243/0.6113, allocations: 47.98 kB / 495.3 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/0.6133, allocations: 119.9 kB / 495.4 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004593/0.6138, allocations: 181.7 kB / 495.6 MB, free: 412 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.614, allocations: 63.98 kB / 495.6 MB, free: 348 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002952/0.6169, allocations: 1.684 MB / 497.3 MB, free: 14.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6169, allocations: 0 / 497.3 MB, free: 14.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004899/0.6218, allocations: 0.7969 MB / 498.1 MB, free: 13.85 MB / 414.1 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 26,(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.623, allocations: 205 kB / 498.3 MB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00938/0.6324, allocations: 3.922 MB / 0.4905 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/0.6324, allocations: 4 kB / 0.4905 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005726/0.6382, allocations: 2.495 MB / 0.4929 GB, free: 7.082 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006358/0.6446, allocations: 0.7293 MB / 0.4936 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/0.6697, allocations: 9.127 MB / 0.5025 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006447/0.6762, allocations: 2.84 MB / 0.5053 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004409/0.6807, allocations: 0.6928 MB / 0.506 GB, free: 9.621 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/0.6819, allocations: 171.4 kB / 0.5061 GB, free: 9.453 MB / 430.1 MB Notification: Performance of SimCode: time 2.264e-06/0.682, allocations: 0 / 0.5061 GB, free: 9.453 MB / 430.1 MB Notification: Performance of Templates: time 0.3135/0.9955, allocations: 42.29 MB / 0.5474 GB, free: 132.6 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) 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.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches