Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.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) 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 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: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001157/0.001157, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1992/0.1992, allocations: 46.11 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 75.88 kB / 480.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.305, allocations: 62.42 MB / 0.5305 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.007966/0.313, allocations: 7.505 MB / 0.5378 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004195/0.3172, allocations: 2.353 MB / 0.5401 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007581/0.318, allocations: 30.62 kB / 0.5402 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003722/0.3218, allocations: 1.743 MB / 0.5419 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001855/0.3236, allocations: 0.7035 MB / 0.5426 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.3252, allocations: 0.7415 MB / 0.5433 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.3268, allocations: 1.25 MB / 0.5445 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.3281, allocations: 0.9384 MB / 0.5454 GB, free: 1.602 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007703/0.3289, allocations: 0.5099 MB / 0.5459 GB, free: 1.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008904/0.3298, allocations: 0.6636 MB / 0.5466 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.33, allocations: 105.2 kB / 0.5467 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007044/0.3307, allocations: 306.5 kB / 0.5469 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.331, allocations: 267 kB / 0.5472 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005919/0.3315, allocations: 0.6102 MB / 0.5478 GB, free: 15.88 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.3332, allocations: 1.611 MB / 0.5494 GB, free: 14.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3332, allocations: 0 / 0.5494 GB, free: 14.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3333, allocations: 0 / 0.5494 GB, free: 14.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.911e-05/0.3333, allocations: 0 / 0.5494 GB, free: 14.27 MB / 414.1 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.004259/0.3376, allocations: 1.837 MB / 0.5512 GB, free: 12.38 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.3376, allocations: 8.031 kB / 0.5512 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002095/0.3378, allocations: 194.7 kB / 0.5514 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009387/0.3472, allocations: 1.343 MB / 0.5527 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.3481, allocations: 0.561 MB / 0.5532 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.673e-05/0.3482, allocations: 103 kB / 0.5533 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.3484, allocations: 131.9 kB / 0.5534 GB, free: 9.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.3503, allocations: 1.249 MB / 0.5547 GB, free: 8.723 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.3504, allocations: 3.938 kB / 0.5547 GB, free: 8.719 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.3505, allocations: 56 kB / 0.5547 GB, free: 8.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.3505, allocations: 32 kB / 0.5548 GB, free: 8.633 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.3528, allocations: 1.447 MB / 0.5562 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00788/0.3607, allocations: 5.813 MB / 0.5618 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.3625, allocations: 0.9497 MB / 0.5628 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000616/0.3631, allocations: 367.7 kB / 0.5631 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001684/0.3633, allocations: 187.2 kB / 0.5633 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.3633, allocations: 39.56 kB / 0.5633 GB, free: 15.28 MB / 430.1 MB Notification: Performance of pre-optimization done (n=90): time 2.625e-06/0.3633, allocations: 0 / 0.5633 GB, free: 15.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=90): time 0.002151/0.3655, allocations: 1.203 MB / 0.5645 GB, free: 14.03 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.3656, allocations: 68.41 kB / 0.5646 GB, free: 13.95 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.3666, allocations: 0.8247 MB / 0.5654 GB, free: 13.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.3666, allocations: 41.7 kB / 0.5654 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.367, allocations: 0.5155 MB / 0.5659 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002518/0.3672, allocations: 317.3 kB / 0.5662 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.3675, allocations: 198.9 kB / 0.5664 GB, free: 12.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.3677, allocations: 406.7 kB / 0.5668 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006415/0.3684, allocations: 346.4 kB / 0.5671 GB, free: 11.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000785/0.3692, allocations: 0.6147 MB / 0.5677 GB, free: 10.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.3706, allocations: 0.9875 MB / 0.5687 GB, free: 9.449 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3706, allocations: 8 kB / 0.5687 GB, free: 9.441 MB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002038/0.3726, allocations: 1.19 MB / 0.5699 GB, free: 8.238 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3727, allocations: 11.94 kB / 0.5699 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.3727, allocations: 16.06 kB / 0.5699 GB, free: 8.211 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.373, allocations: 61.62 kB / 0.57 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009741/0.374, allocations: 263.6 kB / 0.5702 GB, free: 7.887 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.376, allocations: 2.83 MB / 0.573 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007968/0.3768, allocations: 154.9 kB / 0.5731 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/0.3769, allocations: 51.98 kB / 0.5732 GB, free: 4.57 MB / 430.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003507/0.3773, allocations: 261.4 kB / 0.5734 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3774, allocations: 103.3 kB / 0.5735 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/0.3792, allocations: 1.107 MB / 0.5746 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.3793, allocations: 8 kB / 0.5746 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.3793, allocations: 3.938 kB / 0.5746 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3793, allocations: 3.984 kB / 0.5746 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.3829, allocations: 3.151 MB / 0.5777 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.383, allocations: 8 kB / 0.5777 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000706/0.3837, allocations: 175.7 kB / 0.5779 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.3839, allocations: 69.61 kB / 0.5779 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/0.384, allocations: 24 kB / 0.578 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.3858, allocations: 2.832 MB / 0.5807 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3858, allocations: 11.94 kB / 0.5807 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.3878, allocations: 1.485 MB / 0.5822 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002199/0.3881, allocations: 204.3 kB / 0.5824 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3882, allocations: 27.94 kB / 0.5824 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.3889, allocations: 56.03 kB / 0.5825 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.389, allocations: 80.3 kB / 0.5825 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-05/0.3891, allocations: 39.98 kB / 0.5826 GB, free: 10.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006616/0.3897, allocations: 0.5771 MB / 0.5831 GB, free: 9.598 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3897, allocations: 0 / 0.5831 GB, free: 9.598 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008651/0.3906, allocations: 307.6 kB / 0.5834 GB, free: 9.297 MB / 446.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002458/0.3931, allocations: 2.091 MB / 0.5855 GB, free: 7.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001737/0.3948, allocations: 1.094 MB / 0.5865 GB, free: 5.973 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3948, allocations: 0 / 0.5865 GB, free: 5.973 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.3957, allocations: 0.6222 MB / 0.5871 GB, free: 5.324 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007275/0.3965, allocations: 131.9 kB / 0.5873 GB, free: 5.203 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.4076, allocations: 8.465 MB / 0.5955 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.4081, allocations: 1.012 MB / 0.5965 GB, free: 11.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005184/0.4087, allocations: 151.8 kB / 0.5967 GB, free: 11.04 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004888/0.4091, allocations: 387.3 kB / 0.597 GB, free: 10.66 MB / 462.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4092, allocations: 0 / 0.597 GB, free: 10.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04611/0.4553, allocations: 19.66 MB / 0.6162 GB, free: 7.223 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.31, allocations: 11.31 kB / 0.6162 GB, free: 7.215 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Electrical_QuasiStatic_SinglePhase_SerialConnection.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/QuasiStatic/SinglePhase/SerialConnection/SerialConnection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches