Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.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.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001338/0.001338, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001271/0.001271, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 9.043 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 60.56 kB / 306.9 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.09999, allocations: 50.53 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01167/0.1117, allocations: 10.26 MB / 367.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006795/0.1185, allocations: 3.245 MB / 370.9 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001959/0.1205, allocations: 51.75 kB / 371 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002321/0.123, allocations: 0.6216 MB / 371.6 MB, free: 48 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1764/0.2994, allocations: 0.7964 MB / 372.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.3005, allocations: 375 kB / 372.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005104/0.3056, allocations: 3.908 MB / 376.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.3085, allocations: 2.21 MB / 378.9 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0026/0.3111, allocations: 1.286 MB / 380.2 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.3142, allocations: 1.774 MB / 382 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008125/0.315, allocations: 233.4 kB / 382.2 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001471/0.3165, allocations: 342.5 kB / 382.5 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.3177, allocations: 0.9423 MB / 383.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003125/0.3209, allocations: 1.603 MB / 385.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004592/0.3255, allocations: 4.285 MB / 389.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3255, allocations: 0 / 389.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3255, allocations: 0 / 389.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001458/0.3257, allocations: 0 / 389.4 MB, free: 5.211 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.008732/0.3344, allocations: 3.531 MB / 392.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.3345, allocations: 13.64 kB / 392.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.3359, allocations: 388.9 kB / 393.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.3391, allocations: 1.881 MB / 395.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.3393, allocations: 197.6 kB / 395.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003785/0.3396, allocations: 259 kB / 395.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005503/0.3452, allocations: 3.545 MB / 399.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.639e-05/0.3452, allocations: 2.5 kB / 399.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.3455, allocations: 104.2 kB / 399.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.3456, allocations: 114 kB / 399.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00519/0.3508, allocations: 3.095 MB / 402.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01798/0.3688, allocations: 10.86 MB / 413.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/0.3723, allocations: 3.081 MB / 416.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002123/0.3744, allocations: 1.394 MB / 417.8 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002766/0.3747, allocations: 125.3 kB / 417.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001744/0.3764, allocations: 1.144 MB / 419.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.186e-06/0.3765, allocations: 0 / 419.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02018/0.3967, allocations: 8.884 MB / 427.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.3968, allocations: 176.2 kB / 428.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003043/0.3999, allocations: 1.852 MB / 430 MB, free: 296 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.4, allocations: 53.7 kB / 430 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.4011, allocations: 1.207 MB / 431.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004767/0.4016, allocations: 0.5629 MB / 431.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00059/0.4022, allocations: 351.3 kB / 432.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.111e-05/0.4023, allocations: 305.1 kB / 432.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.4039, allocations: 1.003 MB / 433.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.4058, allocations: 1.435 MB / 434.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003427/0.4092, allocations: 2.451 MB / 437.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.4093, allocations: 5.312 kB / 437.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005765/0.415, allocations: 3.33 MB / 440.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.4151, allocations: 8 kB / 440.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.784e-05/0.4151, allocations: 15.98 kB / 440.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/0.4173, allocations: 0.8806 MB / 441.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.4185, allocations: 339.4 kB / 441.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.4295, allocations: 9.545 MB / 451.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.4315, allocations: 135.9 kB / 451.6 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003132/0.4318, allocations: 64 kB / 451.6 MB, free: 9.887 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * 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 {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001855/0.4337, allocations: 0.9292 MB / 452.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005779/0.4343, allocations: 209.4 kB / 452.8 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005445/0.4397, allocations: 3.107 MB / 455.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/0.4398, allocations: 16.19 kB / 455.9 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.469e-05/0.4398, allocations: 8 kB / 455.9 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.811e-05/0.4398, allocations: 11.91 kB / 455.9 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.4515, allocations: 6.274 MB / 462.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.4515, allocations: 3.938 kB / 462.2 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00092/0.4524, allocations: 207.7 kB / 462.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/0.4548, allocations: 0.9365 MB / 463.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/0.4549, allocations: 39.98 kB / 463.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.4675, allocations: 10.99 MB / 474.4 MB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.4676, allocations: 4 kB / 474.4 MB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008576/0.4762, allocations: 4.494 MB / 478.9 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.4777, allocations: 0.5023 MB / 479.4 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007624/0.4785, allocations: 39.94 kB / 479.4 MB, free: 13.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.4801, allocations: 99.88 kB / 479.5 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005453/0.4806, allocations: 200.9 kB / 479.7 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.4808, allocations: 47.98 kB / 479.7 MB, free: 13.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002652/0.4834, allocations: 1.263 MB / 481 MB, free: 11.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4834, allocations: 0 / 481 MB, free: 11.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003012/0.4865, allocations: 0.6328 MB / 481.6 MB, free: 11.17 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (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.0004851/0.487, allocations: 216 kB / 481.8 MB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005321/0.4923, allocations: 3.251 MB / 485.1 MB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.4923, allocations: 0 / 485.1 MB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/0.4957, allocations: 2.206 MB / 487.3 MB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/0.4992, allocations: 0.5379 MB / 487.8 MB, free: 4.809 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.5104, allocations: 6.879 MB / 494.7 MB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00187/0.5123, allocations: 2.153 MB / 496.9 MB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007015/0.513, allocations: 135.4 kB / 497 MB, free: 11.56 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.513, allocations: 0 / 497 MB, free: 11.56 MB / 414.1 MB Notification: Performance of Templates: time 0.2572/0.7702, allocations: 103.2 MB / 0.5861 GB, free: 105.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches