Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_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.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_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.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001506/0.001506, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 84.48 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004, allocations: 8 kB / 327 MB, free: 228 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3313, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1774/0.5088, allocations: 111.8 MB / 486.4 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/0.5092, allocations: 91.95 kB / 486.5 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6259/1.135, allocations: 93.35 MB / 0.5662 GB, free: 49.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.178e-06/1.135, allocations: 0 / 0.5662 GB, free: 49.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004696/1.136, allocations: 95.86 kB / 0.5663 GB, free: 49.43 MB / 378.7 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.01566/1.151, allocations: 3.955 MB / 0.5702 GB, free: 45.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.151, allocations: 8.031 kB / 0.5702 GB, free: 45.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003303/1.155, allocations: 0.5024 MB / 0.5707 GB, free: 44.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008843/1.164, allocations: 2.564 MB / 0.5732 GB, free: 42.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003637/1.164, allocations: 267 kB / 0.5734 GB, free: 42.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001602/1.166, allocations: 351.9 kB / 0.5738 GB, free: 41.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/1.182, allocations: 4.94 MB / 0.5786 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002556/1.183, allocations: 7.906 kB / 0.5786 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001406/1.184, allocations: 148.3 kB / 0.5787 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/1.184, allocations: 183 kB / 0.5789 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01352/1.198, allocations: 4.064 MB / 0.5829 GB, free: 32.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03887/1.237, allocations: 14.94 MB / 0.5975 GB, free: 16.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006695/1.244, allocations: 4.219 MB / 0.6016 GB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005614/1.244, allocations: 143 kB / 0.6017 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.244, allocations: 56.56 kB / 0.6018 GB, free: 12.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=201): time 5.59e-06/1.244, allocations: 0 / 0.6018 GB, free: 12.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=221): time 0.03311/1.277, allocations: 10.18 MB / 0.6117 GB, free: 1.887 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/1.277, allocations: 81.39 kB / 0.6118 GB, free: 1.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005515/1.283, allocations: 2.213 MB / 0.614 GB, free: 15.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006167/1.284, allocations: 61.7 kB / 0.614 GB, free: 15.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001897/1.286, allocations: 1.491 MB / 0.6155 GB, free: 13.99 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001458/1.287, allocations: 0.7393 MB / 0.6162 GB, free: 13.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/1.287, allocations: 44 kB / 0.6162 GB, free: 13.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002908/1.288, allocations: 403.4 kB / 0.6166 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004085/1.292, allocations: 1.304 MB / 0.6179 GB, free: 11.48 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004834/1.297, allocations: 1.733 MB / 0.6196 GB, free: 9.578 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004892/1.302, allocations: 1.548 MB / 0.6211 GB, free: 8.031 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.301e-05/1.302, allocations: 7.938 kB / 0.6211 GB, free: 8.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01309/1.315, allocations: 3.878 MB / 0.6249 GB, free: 4.121 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/1.315, allocations: 12 kB / 0.6249 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/1.315, allocations: 12 kB / 0.6249 GB, free: 4.098 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003502/1.318, allocations: 0.7571 MB / 0.6257 GB, free: 3.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004487/1.323, allocations: 0.5305 MB / 0.6262 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01739/1.34, allocations: 8.95 MB / 0.6349 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003588/1.344, allocations: 124 kB / 0.635 GB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005274/1.345, allocations: 83.95 kB / 0.6351 GB, free: 9.242 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,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 (248): * Single equations (assignments): 243 * 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,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003714/1.348, allocations: 1.217 MB / 0.6363 GB, free: 8.016 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/1.349, allocations: 280.7 kB / 0.6366 GB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01243/1.362, allocations: 3.769 MB / 0.6402 GB, free: 3.934 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.965e-05/1.362, allocations: 20 kB / 0.6403 GB, free: 3.914 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/1.362, allocations: 8 kB / 0.6403 GB, free: 3.906 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-05/1.362, allocations: 15.89 kB / 0.6403 GB, free: 3.891 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3297/1.692, allocations: 8.074 MB / 0.6482 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/1.692, allocations: 3.969 kB / 0.6482 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/1.695, allocations: 393.5 kB / 0.6486 GB, free: 81.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003555/1.699, allocations: 0.8112 MB / 0.6493 GB, free: 81.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003874/1.699, allocations: 65.89 kB / 0.6494 GB, free: 81.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.714, allocations: 10.47 MB / 0.6596 GB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.715, allocations: 3.344 kB / 0.6596 GB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01371/1.728, allocations: 5.826 MB / 0.6653 GB, free: 75.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002327/1.731, allocations: 0.651 MB / 0.666 GB, free: 75.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006604/1.731, allocations: 49.47 kB / 0.666 GB, free: 75.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002495/1.734, allocations: 128.4 kB / 0.6661 GB, free: 75.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006259/1.734, allocations: 180.4 kB / 0.6663 GB, free: 75.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002385/1.735, allocations: 60.81 kB / 0.6664 GB, free: 75.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003872/1.739, allocations: 1.709 MB / 0.668 GB, free: 75.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.693e-06/1.739, allocations: 0 / 0.668 GB, free: 75.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004009/1.743, allocations: 0.8407 MB / 0.6688 GB, free: 75.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,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 (178): * Single equations (assignments): 173 * 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%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009248/1.744, allocations: 384.8 kB / 0.6692 GB, free: 75.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009881/1.754, allocations: 3.924 MB / 0.673 GB, free: 74.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/1.754, allocations: 3.969 kB / 0.6731 GB, free: 74.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006279/1.76, allocations: 2.515 MB / 0.6755 GB, free: 73.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005792/1.766, allocations: 0.7329 MB / 0.6762 GB, free: 73.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02252/1.788, allocations: 9.121 MB / 0.6851 GB, free: 70.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003786/1.792, allocations: 2.799 MB / 0.6879 GB, free: 69.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/1.794, allocations: 184.1 kB / 0.688 GB, free: 69.53 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/1.794, allocations: 0 / 0.688 GB, free: 69.53 MB / 410.7 MB Notification: Performance of Templates: time 0.5388/2.333, allocations: 135.4 MB / 0.8202 GB, free: 112 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches