Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001542, allocations: 191.6 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007474/0.0007474, allocations: 98.7 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002432/0.0002432, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2218, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.003741/0.2256, allocations: 4.818 MB / 413 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.2278, allocations: 1.698 MB / 414.7 MB, free: 21.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.228, allocations: 20 kB / 414.7 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003893/0.2284, allocations: 198.9 kB / 414.9 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009012/0.2294, allocations: 489.5 kB / 415.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005125/0.2299, allocations: 331.4 kB / 415.7 MB, free: 20.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000486/0.2304, allocations: 0.743 MB / 416.4 MB, free: 19.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002054/0.2324, allocations: 1.582 MB / 418 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.2327, allocations: 286.8 kB / 418.3 MB, free: 17.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.233, allocations: 410.4 kB / 418.7 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.775e-05/0.2331, allocations: 40 kB / 418.7 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003351/0.2334, allocations: 195.8 kB / 418.9 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.342e-05/0.2335, allocations: 135.4 kB / 419 MB, free: 16.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.2337, allocations: 379.9 kB / 419.4 MB, free: 16.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005938/0.2343, allocations: 0.901 MB / 420.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2344, allocations: 0 / 420.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2344, allocations: 3.938 kB / 420.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.098e-06/0.2344, allocations: 0 / 420.3 MB, free: 15.44 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002462/0.2368, allocations: 1.182 MB / 421.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2369, allocations: 16.02 kB / 421.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.237, allocations: 144.3 kB / 421.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003963/0.241, allocations: 0.6633 MB / 422.3 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.2414, allocations: 421.5 kB / 422.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.2415, allocations: 70.38 kB / 422.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.2416, allocations: 92.38 kB / 422.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.243, allocations: 0.9938 MB / 423.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.243, allocations: 0 / 423.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.928e-05/0.2431, allocations: 39.94 kB / 423.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2431, allocations: 24 kB / 423.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.2444, allocations: 0.9253 MB / 424.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003532/0.2479, allocations: 3.461 MB / 428.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.2496, allocations: 2.245 MB / 430.6 MB, free: 4.512 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003574/0.25, allocations: 295.5 kB / 430.9 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.2501, allocations: 178.8 kB / 431 MB, free: 4.004 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.2502, allocations: 51.05 kB / 431.1 MB, free: 3.945 MB / 298.7 MB Notification: Performance of pre-optimization done (n=65): time 2.254e-06/0.2502, allocations: 0 / 431.1 MB, free: 3.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.00111/0.2513, allocations: 0.7213 MB / 431.8 MB, free: 3.219 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.2513, allocations: 115.3 kB / 431.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.2515, allocations: 270.5 kB / 432.2 MB, free: 2.805 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.942e-05/0.2516, allocations: 33.7 kB / 432.2 MB, free: 2.766 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2517, allocations: 382.6 kB / 432.6 MB, free: 2.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.734e-05/0.2518, allocations: 224.8 kB / 432.8 MB, free: 2.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.2518, allocations: 16 kB / 432.8 MB, free: 2.145 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.2519, allocations: 350.8 kB / 433.2 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.2523, allocations: 225.9 kB / 433.4 MB, free: 1.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/0.2527, allocations: 443.3 kB / 433.8 MB, free: 1.055 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007561/0.2534, allocations: 0.695 MB / 434.5 MB, free: 280 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2534, allocations: 3.984 kB / 434.5 MB, free: 276 kB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001092/0.2545, allocations: 0.7527 MB / 435.3 MB, free: 15.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.2546, allocations: 11.94 kB / 435.3 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.2546, allocations: 11.98 kB / 435.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.2546, allocations: 8 kB / 435.3 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.2553, allocations: 191.7 kB / 435.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.2553, allocations: 12 kB / 435.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003641/0.2557, allocations: 83.36 kB / 435.6 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.2557, allocations: 28 kB / 435.6 MB, free: 15.16 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002731/0.256, allocations: 225.5 kB / 435.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.681e-05/0.2561, allocations: 39.47 kB / 435.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.2572, allocations: 0.6557 MB / 436.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.2572, allocations: 7.984 kB / 436.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2573, allocations: 4 kB / 436.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.2573, allocations: 0 / 436.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.2593, allocations: 1.49 MB / 438 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2594, allocations: 4 kB / 438 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005605/0.2599, allocations: 143.8 kB / 438.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.2599, allocations: 7.984 kB / 438.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.893e-05/0.26, allocations: 24 kB / 438.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.26, allocations: 3.938 kB / 438.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.26, allocations: 7.984 kB / 438.2 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.2614, allocations: 1.122 MB / 439.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.647e-05/0.2615, allocations: 128.4 kB / 439.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.2616, allocations: 12 kB / 439.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.2619, allocations: 35.98 kB / 439.5 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.2621, allocations: 40.5 kB / 439.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.2621, allocations: 20 kB / 439.6 MB, free: 11.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001573/0.2623, allocations: 182 kB / 439.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2623, allocations: 0 / 439.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006745/0.263, allocations: 231.1 kB / 440 MB, free: 10.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001798/0.2648, allocations: 1.71 MB / 441.7 MB, free: 8.961 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.2658, allocations: 0.6138 MB / 442.3 MB, free: 8.344 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2658, allocations: 0 / 442.3 MB, free: 8.344 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.2662, allocations: 308.3 kB / 442.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.2668, allocations: 40.55 kB / 442.6 MB, free: 8.008 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.2711, allocations: 3.229 MB / 445.9 MB, free: 4.621 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.2715, allocations: 0.897 MB / 446.8 MB, free: 3.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003745/0.2719, allocations: 263.3 kB / 447 MB, free: 3.441 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.2719, allocations: 0 / 447 MB, free: 3.441 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.618/2.89, allocations: 8.83 MB / 455.9 MB, free: 10.6 MB / 330.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches