Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009708/0.0009708, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008004/0.0008005, allocations: 99.94 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.0003198, allocations: 11.98 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2173, allocations: 51.3 MB / 407.5 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.003019/0.2204, allocations: 3.53 MB / 411 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.2215, allocations: 0.8853 MB / 411.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.2217, allocations: 8 kB / 411.9 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.2219, allocations: 71.44 kB / 412 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.2221, allocations: 153.6 kB / 412.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.2224, allocations: 106.6 kB / 412.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.2227, allocations: 0.6186 MB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.223, allocations: 158.3 kB / 413 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.2232, allocations: 219.1 kB / 413.2 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.2234, allocations: 258.8 kB / 413.5 MB, free: 21.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/0.2235, allocations: 32 kB / 413.5 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.976e-05/0.2236, allocations: 32 kB / 413.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.406e-05/0.2237, allocations: 103.5 kB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.005e-05/0.2237, allocations: 125.4 kB / 413.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.224, allocations: 467.6 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.224, allocations: 4 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2241, allocations: 0 / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2241, allocations: 4 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001059/0.2251, allocations: 0.7948 MB / 415 MB, free: 20.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2252, allocations: 11.97 kB / 415 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002548/0.2254, allocations: 83.33 kB / 415.1 MB, free: 20.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.2258, allocations: 350.6 kB / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2258, allocations: 37 kB / 415.5 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.503e-05/0.2259, allocations: 51.91 kB / 415.5 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006354/0.2265, allocations: 483.2 kB / 416 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2266, allocations: 4 kB / 416 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.004e-05/0.2266, allocations: 20 kB / 416 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2266, allocations: 12 kB / 416.1 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005078/0.2271, allocations: 336.3 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.2293, allocations: 1.713 MB / 418.1 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.2297, allocations: 269 kB / 418.4 MB, free: 16.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001967/0.2299, allocations: 141.7 kB / 418.5 MB, free: 16.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.23, allocations: 4 kB / 418.5 MB, free: 16.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.23, allocations: 42.5 kB / 418.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.23, allocations: 7.938 kB / 418.6 MB, free: 16.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001623/0.2316, allocations: 0.9718 MB / 419.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.2317, allocations: 81.11 kB / 419.6 MB, free: 15.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002972/0.232, allocations: 377.6 kB / 420 MB, free: 15.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.232, allocations: 41.69 kB / 420 MB, free: 14.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2321, allocations: 287.4 kB / 420.3 MB, free: 14.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.2322, allocations: 106.5 kB / 420.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.2322, allocations: 12 kB / 420.4 MB, free: 14.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.184e-05/0.2323, allocations: 346.8 kB / 420.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.2325, allocations: 100.8 kB / 420.8 MB, free: 14.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.2327, allocations: 198.8 kB / 421 MB, free: 13.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.2329, allocations: 130 kB / 421.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2329, allocations: 3.953 kB / 421.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006773/0.2336, allocations: 453.1 kB / 421.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.2336, allocations: 12 kB / 421.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2336, allocations: 0 / 421.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003093/0.2339, allocations: 85.59 kB / 421.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.2342, allocations: 83.89 kB / 421.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.2359, allocations: 2.861 MB / 424.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.2362, allocations: 23.88 kB / 424.7 MB, free: 9.984 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.2362, allocations: 19.98 kB / 424.7 MB, free: 9.965 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001585/0.2364, allocations: 157.8 kB / 424.8 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.2365, allocations: 47.55 kB / 424.9 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.2365, allocations: 47.47 kB / 424.9 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.2365, allocations: 4 kB / 424.9 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2365, allocations: 0 / 424.9 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2365, allocations: 3.984 kB / 424.9 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.2376, allocations: 0.94 MB / 425.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2376, allocations: 0 / 425.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.2378, allocations: 43.97 kB / 425.9 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002343/0.238, allocations: 89.58 kB / 426 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.2381, allocations: 7.953 kB / 426 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.2396, allocations: 2.845 MB / 428.9 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2396, allocations: 3.938 kB / 428.9 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007321/0.2403, allocations: 0.6263 MB / 429.5 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.453e-05/0.2404, allocations: 120.6 kB / 429.6 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.438e-05/0.2405, allocations: 15.94 kB / 429.6 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.2408, allocations: 27.98 kB / 429.7 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.2409, allocations: 27.97 kB / 429.7 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.2409, allocations: 11.98 kB / 429.7 MB, free: 4.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002253/0.2411, allocations: 263.2 kB / 430 MB, free: 4.312 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2411, allocations: 4 kB / 430 MB, free: 4.309 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005042/0.2416, allocations: 120 kB / 430.1 MB, free: 4.191 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001279/0.2418, allocations: 107.2 kB / 430.2 MB, free: 4.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007263/0.2425, allocations: 0.5132 MB / 430.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.2425, allocations: 8.125 kB / 430.7 MB, free: 3.531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004609/0.243, allocations: 385.2 kB / 431.1 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.2435, allocations: 72.55 kB / 431.2 MB, free: 3.062 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.2448, allocations: 1.216 MB / 432.4 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.245, allocations: 0.843 MB / 433.2 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.17e-05/0.2451, allocations: 31.44 kB / 433.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2451, allocations: 0 / 433.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of Templates: time 0.009511/0.2547, allocations: 8.819 MB / 442.1 MB, free: 8.109 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches