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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 95.39 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.774e-05/1.755e-05, allocations: 0 / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.09968, allocations: 50.42 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.315/0.4147, allocations: 104.8 MB / 492.2 MB, free: 6.043 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.415, allocations: 79.95 kB / 492.3 MB, free: 5.965 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1335/0.5485, allocations: 52.86 MB / 0.5324 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5486, allocations: 0 / 0.5324 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002332/0.5488, allocations: 71.94 kB / 0.5324 GB, free: 0.6211 MB / 410.7 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.00606/0.5549, allocations: 2.715 MB / 0.5351 GB, free: 13.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.5549, allocations: 11.98 kB / 0.5351 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.5561, allocations: 363.9 kB / 0.5354 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003825/0.5599, allocations: 1.882 MB / 0.5373 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.5601, allocations: 88 kB / 0.5374 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004405/0.5605, allocations: 160.2 kB / 0.5375 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004416/0.5649, allocations: 2.7 MB / 0.5402 GB, free: 8.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004594/0.5695, allocations: 3.042 MB / 0.5431 GB, free: 5.395 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.837e-05/0.5696, allocations: 15.94 kB / 0.5431 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001939/0.5698, allocations: 4 kB / 0.5432 GB, free: 5.375 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.024e-05/0.5699, allocations: 104.9 kB / 0.5433 GB, free: 5.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2206/0.7905, allocations: 10.41 MB / 0.5534 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.7933, allocations: 2.994 MB / 0.5563 GB, free: 99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.7948, allocations: 1.202 MB / 0.5575 GB, free: 98.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002975/0.7951, allocations: 136.5 kB / 0.5576 GB, free: 98.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001528/0.7967, allocations: 1.069 MB / 0.5587 GB, free: 98.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 4.298e-06/0.7967, allocations: 0 / 0.5587 GB, free: 98.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.01068/0.8074, allocations: 5.741 MB / 0.5643 GB, free: 98.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.8075, allocations: 184.5 kB / 0.5645 GB, free: 97.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002449/0.81, allocations: 1.337 MB / 0.5658 GB, free: 97.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001658/0.8101, allocations: 28.03 kB / 0.5658 GB, free: 97.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.8113, allocations: 1.175 MB / 0.5669 GB, free: 97.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005677/0.8119, allocations: 0.5462 MB / 0.5675 GB, free: 97.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.139e-05/0.812, allocations: 2.312 kB / 0.5675 GB, free: 97.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.8122, allocations: 373.6 kB / 0.5678 GB, free: 96.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.8137, allocations: 0.9134 MB / 0.5687 GB, free: 96.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.8153, allocations: 1.28 MB / 0.57 GB, free: 96.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.8168, allocations: 1.065 MB / 0.571 GB, free: 96.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.8169, allocations: 2.5 kB / 0.571 GB, free: 96.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004603/0.8215, allocations: 2.996 MB / 0.5739 GB, free: 96.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.8215, allocations: 7.562 kB / 0.574 GB, free: 96.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.8215, allocations: 11.28 kB / 0.574 GB, free: 96.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.8232, allocations: 0.8474 MB / 0.5748 GB, free: 96.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.8244, allocations: 335 kB / 0.5751 GB, free: 96.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007983/0.8324, allocations: 9.164 MB / 0.5841 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.8343, allocations: 106.4 kB / 0.5842 GB, free: 90 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.8345, allocations: 66.69 kB / 0.5842 GB, free: 89.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 174 * 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 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003871/0.8349, allocations: 161.2 kB / 0.5844 GB, free: 89.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.8352, allocations: 192.6 kB / 0.5846 GB, free: 89.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004236/0.8395, allocations: 2.88 MB / 0.5874 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.8395, allocations: 14.94 kB / 0.5874 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.8395, allocations: 7.531 kB / 0.5874 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.548e-05/0.8396, allocations: 7.547 kB / 0.5874 GB, free: 88.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00786/0.8474, allocations: 5.707 MB / 0.593 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.8475, allocations: 2.969 kB / 0.593 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009246/0.8484, allocations: 225.9 kB / 0.5932 GB, free: 86.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/0.8502, allocations: 0.894 MB / 0.5941 GB, free: 86.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.8503, allocations: 15.66 kB / 0.5941 GB, free: 86.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008846/0.8592, allocations: 10.62 MB / 0.6045 GB, free: 78.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.8592, allocations: 3.969 kB / 0.6045 GB, free: 78.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005364/0.8646, allocations: 4.405 MB / 0.6088 GB, free: 77.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009203/0.8655, allocations: 488.5 kB / 0.6092 GB, free: 76.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.8658, allocations: 13.83 kB / 0.6092 GB, free: 76.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/0.8667, allocations: 94.62 kB / 0.6093 GB, free: 76.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/0.8672, allocations: 196.1 kB / 0.6095 GB, free: 76.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.8673, allocations: 54.55 kB / 0.6096 GB, free: 76.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001499/0.8688, allocations: 1.009 MB / 0.6106 GB, free: 76.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8688, allocations: 0 / 0.6106 GB, free: 76.29 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002249/0.8711, allocations: 0.5682 MB / 0.6111 GB, free: 76.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006834/0.8718, allocations: 292.9 kB / 0.6114 GB, free: 76.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003619/0.8754, allocations: 3.006 MB / 0.6143 GB, free: 74.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.8754, allocations: 0 / 0.6143 GB, free: 74.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.8778, allocations: 2.131 MB / 0.6164 GB, free: 73.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.8799, allocations: 440.6 kB / 0.6168 GB, free: 73.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006552/0.8865, allocations: 4.567 MB / 0.6213 GB, free: 71.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.888, allocations: 2.245 MB / 0.6235 GB, free: 70.69 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001206/0.8892, allocations: 420.8 kB / 0.6239 GB, free: 70.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/0.8896, allocations: 118.7 kB / 0.624 GB, free: 70.52 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/0.8896, allocations: 4 kB / 0.624 GB, free: 70.52 MB / 426.7 MB Notification: Performance of Templates: time 0.04285/0.9324, allocations: 30.51 MB / 0.6538 GB, free: 47.65 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","../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