Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 109.8 kB / 17.74 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001691/0.001692, allocations: 181.5 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2483, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01307/0.2614, allocations: 10.29 MB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006683/0.2681, allocations: 3.205 MB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.2699, allocations: 51.81 kB / 415 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.2723, allocations: 0.6947 MB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003127/0.2754, allocations: 0.8775 MB / 416.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.2766, allocations: 403.5 kB / 416.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.2815, allocations: 3.408 MB / 420.3 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003857/0.2854, allocations: 2.603 MB / 422.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002487/0.2879, allocations: 1.515 MB / 424.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.291, allocations: 1.853 MB / 426.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001064/0.2921, allocations: 400 kB / 426.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.2938, allocations: 491.8 kB / 427.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001607/0.2954, allocations: 1.099 MB / 428.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003121/0.2986, allocations: 1.781 MB / 430.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00707/0.3056, allocations: 5.207 MB / 435.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3057, allocations: 0 / 435.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3057, allocations: 0 / 435.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001969/0.3059, allocations: 0 / 435.3 MB, free: 6.852 MB / 350.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.00919/0.3151, allocations: 3.527 MB / 438.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3152, allocations: 12.03 kB / 438.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/0.3164, allocations: 357 kB / 439.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003668/0.3201, allocations: 1.918 MB / 441.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.3203, allocations: 193.2 kB / 441.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005987/0.3209, allocations: 263.8 kB / 441.5 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006585/0.3275, allocations: 3.535 MB / 445.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.677e-05/0.3276, allocations: 7.891 kB / 445.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000281/0.3279, allocations: 104 kB / 445.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.328, allocations: 108.9 kB / 445.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005419/0.3334, allocations: 3.103 MB / 448.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/0.3511, allocations: 10.73 MB / 459.1 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003474/0.3546, allocations: 3.09 MB / 462.2 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002178/0.3568, allocations: 1.38 MB / 463.6 MB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002659/0.3571, allocations: 134.4 kB / 463.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001734/0.3588, allocations: 1.144 MB / 464.8 MB, free: 8.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.477e-06/0.3588, allocations: 0 / 464.8 MB, free: 8.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02001/0.3788, allocations: 8.874 MB / 473.7 MB, free: 15.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.379, allocations: 176.2 kB / 473.9 MB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002554/0.3816, allocations: 1.832 MB / 475.7 MB, free: 13.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.3818, allocations: 61.7 kB / 475.8 MB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009891/0.3827, allocations: 1.192 MB / 477 MB, free: 12.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005236/0.3833, allocations: 0.5585 MB / 477.5 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/0.3838, allocations: 355.2 kB / 477.9 MB, free: 11.21 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.395e-05/0.3839, allocations: 305.1 kB / 478.2 MB, free: 10.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.3855, allocations: 1.003 MB / 479.2 MB, free: 9.902 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.3874, allocations: 1.434 MB / 480.6 MB, free: 8.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/0.3909, allocations: 2.45 MB / 483.1 MB, free: 5.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.3909, allocations: 0 / 483.1 MB, free: 5.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005912/0.3968, allocations: 3.338 MB / 486.4 MB, free: 2.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.3969, allocations: 8 kB / 486.4 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.186e-05/0.3969, allocations: 12 kB / 486.4 MB, free: 2.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.399, allocations: 0.8854 MB / 487.3 MB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.4003, allocations: 339.4 kB / 487.6 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/0.4123, allocations: 10.43 MB / 498.1 MB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.4142, allocations: 135.8 kB / 498.2 MB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000288/0.4145, allocations: 68 kB / 498.3 MB, free: 6.062 MB / 414.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.001934/0.4164, allocations: 0.9292 MB / 499.2 MB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005137/0.4169, allocations: 201.5 kB / 499.4 MB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005576/0.4225, allocations: 3.107 MB / 0.4907 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.4226, allocations: 16 kB / 0.4907 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-05/0.4226, allocations: 12 kB / 0.4908 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.709e-05/0.4226, allocations: 7.969 kB / 0.4908 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.4339, allocations: 6.213 MB / 0.4968 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.434, allocations: 4 kB / 0.4968 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009317/0.4349, allocations: 204.1 kB / 0.497 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/0.4372, allocations: 0.9406 MB / 0.4979 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.4374, allocations: 47.86 kB / 0.498 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/0.4501, allocations: 12.01 MB / 0.5097 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4502, allocations: 0 / 0.5097 GB, free: 13.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007453/0.4576, allocations: 4.507 MB / 0.5141 GB, free: 9.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.4589, allocations: 498.5 kB / 0.5146 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004936/0.4594, allocations: 43.98 kB / 0.5146 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4607, allocations: 99.89 kB / 0.5147 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000506/0.4612, allocations: 196.9 kB / 0.5149 GB, free: 8.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.4614, allocations: 47.98 kB / 0.515 GB, free: 8.184 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.4636, allocations: 1.258 MB / 0.5162 GB, free: 6.934 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4636, allocations: 0 / 0.5162 GB, free: 6.934 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002347/0.466, allocations: 0.6367 MB / 0.5168 GB, free: 6.297 MB / 446.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.0004711/0.4665, allocations: 213.1 kB / 0.517 GB, free: 6.082 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005331/0.4718, allocations: 3.258 MB / 0.5202 GB, free: 2.738 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4718, allocations: 4.125 kB / 0.5202 GB, free: 2.734 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003413/0.4753, allocations: 2.187 MB / 0.5223 GB, free: 484 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.4782, allocations: 0.5756 MB / 0.5229 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009374/0.4876, allocations: 5.708 MB / 0.5285 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002124/0.4898, allocations: 2.145 MB / 0.5306 GB, free: 7.957 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006368/0.4904, allocations: 143.4 kB / 0.5307 GB, free: 7.816 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4904, allocations: 4 kB / 0.5307 GB, free: 7.812 MB / 462.1 MB Notification: Performance of Templates: time 0.2676/0.758, allocations: 103 MB / 0.6313 GB, free: 43.07 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches