Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009223/0.0009223, allocations: 193 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.154/1.154, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007084/0.0007084, allocations: 102.7 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2467/0.2467, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002166, allocations: 4 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.227, allocations: 62.96 MB / 0.516 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.004324/0.2314, allocations: 6.48 MB / 0.5223 GB, free: 32.54 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002164/0.2336, allocations: 2.176 MB / 0.5244 GB, free: 30.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.2339, allocations: 23.91 kB / 0.5244 GB, free: 30.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004195/0.2343, allocations: 250.4 kB / 0.5247 GB, free: 30.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009741/0.2353, allocations: 0.5863 MB / 0.5252 GB, free: 30.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009028/0.2362, allocations: 0.6215 MB / 0.5259 GB, free: 30.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006692/0.2369, allocations: 1.132 MB / 0.527 GB, free: 29.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001922/0.2388, allocations: 1.602 MB / 0.5285 GB, free: 28.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/0.2391, allocations: 426.7 kB / 0.5289 GB, free: 28.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.2395, allocations: 0.5716 MB / 0.5295 GB, free: 28.03 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.983e-05/0.2396, allocations: 51.44 kB / 0.5295 GB, free: 28.03 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.24, allocations: 234.9 kB / 0.5298 GB, free: 27.97 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.2401, allocations: 201.6 kB / 0.53 GB, free: 27.85 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.2404, allocations: 0.5413 MB / 0.5305 GB, free: 27.51 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007059/0.2411, allocations: 1.207 MB / 0.5317 GB, free: 27.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2411, allocations: 0 / 0.5317 GB, free: 27.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2411, allocations: 3.938 kB / 0.5317 GB, free: 27.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.2412, allocations: 0 / 0.5317 GB, free: 27.16 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: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.003091/0.2442, allocations: 1.563 MB / 0.5332 GB, free: 26.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.2443, allocations: 8.469 kB / 0.5332 GB, free: 26.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.2445, allocations: 200.2 kB / 0.5334 GB, free: 26.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007811/0.2523, allocations: 1.34 MB / 0.5347 GB, free: 25.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.2528, allocations: 0.5583 MB / 0.5352 GB, free: 25.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.2529, allocations: 106.4 kB / 0.5353 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.253, allocations: 136 kB / 0.5355 GB, free: 25.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.2547, allocations: 1.24 MB / 0.5367 GB, free: 24.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.315e-05/0.2548, allocations: 0 / 0.5367 GB, free: 24.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.397e-05/0.2549, allocations: 57.03 kB / 0.5367 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.2549, allocations: 32.91 kB / 0.5368 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001845/0.2568, allocations: 1.442 MB / 0.5382 GB, free: 24.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006508/0.2633, allocations: 5.862 MB / 0.5439 GB, free: 20.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001548/0.2648, allocations: 0.9483 MB / 0.5448 GB, free: 19.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000519/0.2654, allocations: 367.8 kB / 0.5452 GB, free: 19.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001215/0.2655, allocations: 183.2 kB / 0.5454 GB, free: 19.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.2655, allocations: 44.69 kB / 0.5454 GB, free: 19.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 2.434e-06/0.2655, allocations: 0 / 0.5454 GB, free: 19.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=90): time 0.001941/0.2675, allocations: 1.212 MB / 0.5466 GB, free: 18.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.434e-05/0.2675, allocations: 60.69 kB / 0.5466 GB, free: 18.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008585/0.2684, allocations: 0.8235 MB / 0.5474 GB, free: 18.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.2684, allocations: 41.67 kB / 0.5475 GB, free: 18.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.2687, allocations: 0.4909 MB / 0.548 GB, free: 17.85 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.2688, allocations: 313.5 kB / 0.5483 GB, free: 17.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.2689, allocations: 24.78 kB / 0.5483 GB, free: 17.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.269, allocations: 398 kB / 0.5487 GB, free: 17.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.2695, allocations: 348.9 kB / 0.549 GB, free: 17.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000647/0.2702, allocations: 0.612 MB / 0.5496 GB, free: 16.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.2714, allocations: 0.9951 MB / 0.5506 GB, free: 15.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.2714, allocations: 3.719 kB / 0.5506 GB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.001739/0.2732, allocations: 1.178 MB / 0.5517 GB, free: 15.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.2732, allocations: 16.05 kB / 0.5517 GB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.2732, allocations: 17.31 kB / 0.5518 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002361/0.2734, allocations: 73.89 kB / 0.5518 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008737/0.2743, allocations: 260.2 kB / 0.5521 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.2756, allocations: 2.629 MB / 0.5546 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/0.2763, allocations: 164.3 kB / 0.5548 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-05/0.2764, allocations: 51.56 kB / 0.5548 GB, free: 12.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 139 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002828/0.2767, allocations: 265.2 kB / 0.5551 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2768, allocations: 92.06 kB / 0.5552 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/0.2785, allocations: 1.113 MB / 0.5563 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.2785, allocations: 13.66 kB / 0.5563 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2785, allocations: 5.031 kB / 0.5563 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.2785, allocations: 4.828 kB / 0.5563 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003167/0.2817, allocations: 3.147 MB / 0.5594 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.2817, allocations: 10.97 kB / 0.5594 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006558/0.2824, allocations: 175.1 kB / 0.5595 GB, free: 9.449 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.2826, allocations: 66.75 kB / 0.5596 GB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.684e-05/0.2826, allocations: 26.56 kB / 0.5596 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.2838, allocations: 2.628 MB / 0.5622 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.2838, allocations: 8.062 kB / 0.5622 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.2856, allocations: 1.481 MB / 0.5637 GB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.2858, allocations: 223.1 kB / 0.5639 GB, free: 5.633 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2859, allocations: 23.09 kB / 0.5639 GB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005715/0.2865, allocations: 64.22 kB / 0.564 GB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.2866, allocations: 82.23 kB / 0.564 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/0.2867, allocations: 33.3 kB / 0.5641 GB, free: 5.539 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005794/0.2873, allocations: 0.5713 MB / 0.5646 GB, free: 5.211 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2873, allocations: 0 / 0.5646 GB, free: 5.211 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008261/0.2881, allocations: 309 kB / 0.5649 GB, free: 5.148 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 (currentSource.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 (93): * Single equations (assignments): 91 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001877/0.29, allocations: 2.092 MB / 0.567 GB, free: 3.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.2914, allocations: 1.09 MB / 0.568 GB, free: 1.906 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.2914, allocations: 4 kB / 0.568 GB, free: 1.902 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006735/0.2921, allocations: 0.623 MB / 0.5686 GB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.2932, allocations: 137.7 kB / 0.5688 GB, free: 1.121 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006982/0.3002, allocations: 5.77 MB / 0.5744 GB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.3007, allocations: 1.012 MB / 0.5754 GB, free: 9.945 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005423/0.3012, allocations: 399.3 kB / 0.5758 GB, free: 9.555 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3012, allocations: 0 / 0.5758 GB, free: 9.555 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.183/6.484, allocations: 22.89 MB / 0.5981 GB, free: 2.602 MB / 410.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches