Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 194 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000806/0.000806, allocations: 102.6 kB / 296.8 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002055, allocations: 4 kB / 356.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2159, allocations: 51.3 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.007079/0.223, allocations: 9.129 MB / 417.2 MB, free: 18.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00471/0.2277, allocations: 3.076 MB / 420.3 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009462/0.2287, allocations: 51.75 kB / 420.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001225/0.23, allocations: 0.5553 MB / 420.9 MB, free: 14.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001711/0.2317, allocations: 0.7731 MB / 421.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000593/0.2323, allocations: 259.6 kB / 421.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002628/0.2349, allocations: 3.533 MB / 425.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.2369, allocations: 2.191 MB / 427.6 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.2383, allocations: 1.121 MB / 428.7 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.2396, allocations: 1.506 MB / 430.2 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000263/0.2399, allocations: 164 kB / 430.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005828/0.2405, allocations: 271.8 kB / 430.7 MB, free: 4.914 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005982/0.2411, allocations: 0.8293 MB / 431.5 MB, free: 4.082 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.2423, allocations: 1.425 MB / 432.9 MB, free: 2.645 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003/0.2453, allocations: 4.168 MB / 437.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2453, allocations: 0 / 437.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2454, allocations: 0 / 437.1 MB, free: 14.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001315/0.2455, allocations: 0 / 437.1 MB, free: 14.46 MB / 314.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.005892/0.2514, allocations: 3.006 MB / 440.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.2515, allocations: 15.97 kB / 440.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.2526, allocations: 396.8 kB / 440.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003082/0.2557, allocations: 1.859 MB / 442.4 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.2559, allocations: 201.2 kB / 442.6 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003849/0.2563, allocations: 259.9 kB / 442.8 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005909/0.2622, allocations: 3.531 MB / 446.3 MB, free: 4.988 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-05/0.2623, allocations: 4 kB / 446.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002373/0.2626, allocations: 100 kB / 446.4 MB, free: 4.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.2627, allocations: 116.9 kB / 446.6 MB, free: 4.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005447/0.2681, allocations: 3.099 MB / 449.7 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01709/0.2853, allocations: 10.94 MB / 460.6 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003436/0.2887, allocations: 3.086 MB / 463.7 MB, free: 3.145 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.2909, allocations: 1.388 MB / 465.1 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002731/0.2912, allocations: 122.4 kB / 465.2 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001761/0.293, allocations: 1.152 MB / 466.3 MB, free: 448 kB / 330.7 MB Notification: Performance of pre-optimization done (n=156): time 3.526e-06/0.293, allocations: 3.938 kB / 466.3 MB, free: 444 kB / 330.7 MB Notification: Performance of matching and sorting (n=172): time 0.01976/0.3128, allocations: 8.988 MB / 475.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.3129, allocations: 188.2 kB / 475.5 MB, free: 7.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.3155, allocations: 1.82 MB / 477.3 MB, free: 5.246 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001544/0.3157, allocations: 57.7 kB / 477.4 MB, free: 5.184 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009841/0.3167, allocations: 1.196 MB / 478.6 MB, free: 3.973 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004803/0.3171, allocations: 0.5545 MB / 479.1 MB, free: 3.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.3173, allocations: 36 kB / 479.2 MB, free: 3.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3174, allocations: 377.9 kB / 479.5 MB, free: 3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.319, allocations: 1.003 MB / 480.5 MB, free: 1.996 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.3208, allocations: 1.446 MB / 482 MB, free: 400 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003405/0.3243, allocations: 2.458 MB / 484.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.3243, allocations: 0 / 484.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005564/0.3298, allocations: 3.338 MB / 487.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.3299, allocations: 15.94 kB / 487.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.3299, allocations: 8 kB / 487.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.332, allocations: 0.8898 MB / 488.7 MB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.3333, allocations: 339.4 kB / 489 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/0.3444, allocations: 9.559 MB / 498.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/0.3461, allocations: 147.9 kB / 498.7 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.3463, allocations: 68 kB / 498.8 MB, free: 14.99 MB / 378.7 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 ($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],$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 () * 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 (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.001594/0.3479, allocations: 0.9285 MB / 499.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003725/0.3483, allocations: 205.5 kB / 499.9 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005435/0.3537, allocations: 3.115 MB / 0.4913 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.3537, allocations: 16 kB / 0.4913 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.3538, allocations: 8 kB / 0.4913 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.3538, allocations: 15.91 kB / 0.4913 GB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.3643, allocations: 6.295 MB / 0.4974 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.3644, allocations: 0 / 0.4974 GB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009293/0.3653, allocations: 220 kB / 0.4977 GB, free: 4.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002249/0.3676, allocations: 0.9172 MB / 0.4985 GB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/0.3677, allocations: 43.98 kB / 0.4986 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.177/0.5447, allocations: 10.99 MB / 0.5093 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/0.5447, allocations: 9.281 kB / 0.5093 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006787/0.5515, allocations: 4.537 MB / 0.5138 GB, free: 84.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009463/0.5525, allocations: 0.4934 MB / 0.5142 GB, free: 84.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.5528, allocations: 39.45 kB / 0.5143 GB, free: 84.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008942/0.5537, allocations: 115.4 kB / 0.5144 GB, free: 84.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004292/0.5541, allocations: 197.6 kB / 0.5146 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5542, allocations: 48.92 kB / 0.5146 GB, free: 84.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001497/0.5557, allocations: 1.248 MB / 0.5158 GB, free: 83.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5557, allocations: 1.594 kB / 0.5158 GB, free: 83.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001712/0.5575, allocations: 0.6343 MB / 0.5165 GB, free: 83.69 MB / 378.7 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 (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.0003635/0.5578, allocations: 208.9 kB / 0.5167 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004/0.5618, allocations: 3.261 MB / 0.5198 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5619, allocations: 0 / 0.5198 GB, free: 81.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.5645, allocations: 2.214 MB / 0.522 GB, free: 80 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/0.5672, allocations: 0.5446 MB / 0.5225 GB, free: 79.51 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007323/0.5746, allocations: 6.714 MB / 0.5291 GB, free: 72.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.576, allocations: 2.149 MB / 0.5312 GB, free: 70.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005424/0.5765, allocations: 139.4 kB / 0.5313 GB, free: 70.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5765, allocations: 0 / 0.5313 GB, free: 70.45 MB / 378.7 MB Notification: Performance of Templates: time 0.09023/0.6668, allocations: 102.4 MB / 0.6313 GB, free: 48 kB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches