Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001532/0.001532, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001976, allocations: 214.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2282, allocations: 50.55 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.006272/0.2345, allocations: 5.608 MB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.2374, allocations: 1.861 MB / 417.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002462/0.2376, allocations: 16 kB / 417.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.241, allocations: 1.622 MB / 419 MB, free: 8.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.2422, allocations: 0.5866 MB / 419.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007508/0.243, allocations: 414.8 kB / 420 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000699/0.2437, allocations: 0.8051 MB / 420.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001169/0.2448, allocations: 0.8678 MB / 421.7 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.2453, allocations: 354.7 kB / 422.1 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.2457, allocations: 490.2 kB / 422.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-05/0.2459, allocations: 80 kB / 422.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004382/0.2463, allocations: 247.8 kB / 422.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.2464, allocations: 179.4 kB / 423 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.2468, allocations: 421.9 kB / 423.4 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.2479, allocations: 1.185 MB / 424.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2479, allocations: 7.938 kB / 424.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.2479, allocations: 4 kB / 424.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.2479, allocations: 0 / 424.6 MB, free: 2.844 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.003205/0.2511, allocations: 1.346 MB / 426 MB, free: 1.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2512, allocations: 8.031 kB / 426 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004869/0.2561, allocations: 0.6516 MB / 426.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006427/0.2567, allocations: 417.4 kB / 427.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.2568, allocations: 70.38 kB / 427.1 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.2569, allocations: 100.3 kB / 427.2 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.2585, allocations: 0.9902 MB / 428.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/0.2586, allocations: 0 / 428.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.913e-05/0.2587, allocations: 40 kB / 428.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.2587, allocations: 31.94 kB / 428.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.2603, allocations: 0.9136 MB / 429.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/0.265, allocations: 3.422 MB / 432.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.2673, allocations: 2.241 MB / 434.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004611/0.2678, allocations: 291.5 kB / 435.1 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.268, allocations: 182.7 kB / 435.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.268, allocations: 43.12 kB / 435.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 3.046e-06/0.268, allocations: 0 / 435.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.001352/0.2694, allocations: 0.7171 MB / 436.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.103e-05/0.2694, allocations: 111.4 kB / 436.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.2697, allocations: 270.5 kB / 436.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.2697, allocations: 33.7 kB / 436.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002075/0.2699, allocations: 382.9 kB / 436.9 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2701, allocations: 228.7 kB / 437.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.2703, allocations: 138.6 kB / 437.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.2704, allocations: 346.8 kB / 437.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004018/0.2708, allocations: 225.9 kB / 437.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.2714, allocations: 435.3 kB / 438.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009917/0.2724, allocations: 0.6911 MB / 438.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2724, allocations: 8 kB / 438.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001225/0.2736, allocations: 0.7445 MB / 439.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.2737, allocations: 10.81 kB / 439.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2737, allocations: 11.94 kB / 439.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.2737, allocations: 8 kB / 439.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006886/0.2744, allocations: 188.2 kB / 439.9 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.2744, allocations: 19.92 kB / 439.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003968/0.2748, allocations: 79.22 kB / 440 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.805e-05/0.2749, allocations: 35.98 kB / 440 MB, free: 2.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002672/0.2752, allocations: 225.5 kB / 440.2 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2753, allocations: 39.53 kB / 440.2 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.2765, allocations: 0.6555 MB / 440.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2765, allocations: 3.984 kB / 440.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.2765, allocations: 4 kB / 440.9 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.477e-05/0.2766, allocations: 132.4 kB / 441 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.693e-05/0.2767, allocations: 12 kB / 441.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.277, allocations: 19.98 kB / 441.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.519e-05/0.2771, allocations: 40.52 kB / 441.1 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001304/0.2784, allocations: 0.8487 MB / 442 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001544/0.28, allocations: 1.191 MB / 443.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004217/0.2804, allocations: 276.4 kB / 443.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.2806, allocations: 186 kB / 443.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Backend: time 6.02e-07/0.2806, allocations: 0 / 443.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.282, allocations: 0.5726 MB / 444.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 0.001771/0.2838, allocations: 1.497 MB / 445.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of Templates: time 0.01302/0.2968, allocations: 7.649 MB / 453.3 MB, free: 5.074 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches