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.001621/0.001621, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001965/0.001965, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 72.2 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2943, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.008485/0.3028, allocations: 7.499 MB / 0.5378 GB, free: 7.426 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004783/0.3077, allocations: 2.352 MB / 0.5401 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008488/0.3085, allocations: 23.81 kB / 0.5402 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003885/0.3125, allocations: 1.751 MB / 0.5419 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002083/0.3146, allocations: 0.6953 MB / 0.5425 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.3162, allocations: 0.7468 MB / 0.5433 GB, free: 3.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001791/0.318, allocations: 1.245 MB / 0.5445 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.3197, allocations: 0.9382 MB / 0.5454 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001/0.3207, allocations: 0.5063 MB / 0.5459 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.3218, allocations: 0.6708 MB / 0.5466 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002904/0.3221, allocations: 105.7 kB / 0.5467 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009767/0.3231, allocations: 300.2 kB / 0.5469 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.3233, allocations: 271 kB / 0.5472 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006438/0.324, allocations: 0.6102 MB / 0.5478 GB, free: 16 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.326, allocations: 1.612 MB / 0.5494 GB, free: 14.4 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.326, allocations: 3.984 kB / 0.5494 GB, free: 14.39 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.326, allocations: 0 / 0.5494 GB, free: 14.39 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.667e-05/0.326, allocations: 0 / 0.5494 GB, free: 14.39 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.004424/0.3304, allocations: 1.829 MB / 0.5512 GB, free: 12.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3305, allocations: 12.03 kB / 0.5512 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00021/0.3307, allocations: 198.7 kB / 0.5514 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009947/0.3407, allocations: 1.331 MB / 0.5527 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.3418, allocations: 0.5688 MB / 0.5532 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.323e-05/0.3418, allocations: 99.03 kB / 0.5533 GB, free: 10.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.3421, allocations: 139.9 kB / 0.5534 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.3444, allocations: 1.238 MB / 0.5547 GB, free: 8.863 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/0.3444, allocations: 8 kB / 0.5547 GB, free: 8.855 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.3446, allocations: 52 kB / 0.5547 GB, free: 8.805 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.3446, allocations: 39.92 kB / 0.5547 GB, free: 8.766 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.3471, allocations: 1.447 MB / 0.5562 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008277/0.3554, allocations: 5.817 MB / 0.5618 GB, free: 1.012 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.3573, allocations: 0.948 MB / 0.5628 GB, free: 40 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007053/0.358, allocations: 367.8 kB / 0.5631 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001942/0.3582, allocations: 183.1 kB / 0.5633 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3583, allocations: 43.56 kB / 0.5633 GB, free: 15.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=90): time 2.093e-06/0.3583, allocations: 0 / 0.5633 GB, free: 15.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=90): time 0.002328/0.3606, allocations: 1.211 MB / 0.5645 GB, free: 14.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.3607, allocations: 60.41 kB / 0.5646 GB, free: 14.08 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3618, allocations: 0.8247 MB / 0.5654 GB, free: 13.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.343e-05/0.3619, allocations: 45.7 kB / 0.5654 GB, free: 13.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003093/0.3622, allocations: 0.5155 MB / 0.5659 GB, free: 12.67 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/0.3624, allocations: 325.3 kB / 0.5662 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002932/0.3627, allocations: 194.9 kB / 0.5664 GB, free: 12.15 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002119/0.3629, allocations: 398.7 kB / 0.5668 GB, free: 11.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006056/0.3635, allocations: 346.5 kB / 0.5671 GB, free: 11.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008054/0.3644, allocations: 0.6186 MB / 0.5677 GB, free: 10.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.3658, allocations: 0.9914 MB / 0.5687 GB, free: 9.574 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.3658, allocations: 4 kB / 0.5687 GB, free: 9.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.00206/0.3678, allocations: 1.182 MB / 0.5699 GB, free: 8.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3679, allocations: 19.86 kB / 0.5699 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3679, allocations: 8 kB / 0.5699 GB, free: 8.348 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002649/0.3682, allocations: 65.69 kB / 0.57 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.3692, allocations: 271.8 kB / 0.5702 GB, free: 8.012 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.3715, allocations: 2.822 MB / 0.573 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009635/0.3725, allocations: 154.8 kB / 0.5731 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.87e-05/0.3726, allocations: 51.98 kB / 0.5732 GB, free: 4.703 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.0004083/0.373, allocations: 261.6 kB / 0.5734 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.3732, allocations: 99.33 kB / 0.5735 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.375, allocations: 1.107 MB / 0.5746 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3751, allocations: 8 kB / 0.5746 GB, free: 3.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.3751, allocations: 4 kB / 0.5746 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3751, allocations: 7.984 kB / 0.5746 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.3792, allocations: 3.147 MB / 0.5777 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.3792, allocations: 4 kB / 0.5777 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007487/0.3799, allocations: 184.5 kB / 0.5779 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002119/0.3802, allocations: 61.67 kB / 0.5779 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.273e-05/0.3802, allocations: 24 kB / 0.5779 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002067/0.3823, allocations: 2.84 MB / 0.5807 GB, free: 12.32 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.3823, allocations: 8 kB / 0.5807 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.3846, allocations: 1.489 MB / 0.5822 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.3849, allocations: 208.2 kB / 0.5824 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.385, allocations: 24 kB / 0.5824 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/0.3857, allocations: 51.97 kB / 0.5825 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.3859, allocations: 84.3 kB / 0.5825 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-05/0.3859, allocations: 35.98 kB / 0.5826 GB, free: 10.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007142/0.3867, allocations: 0.5771 MB / 0.5831 GB, free: 9.738 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3867, allocations: 0 / 0.5831 GB, free: 9.738 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009526/0.3876, allocations: 311.6 kB / 0.5834 GB, free: 9.434 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.002621/0.3903, allocations: 2.083 MB / 0.5855 GB, free: 7.234 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.3923, allocations: 1.101 MB / 0.5865 GB, free: 6.109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.3923, allocations: 0 / 0.5865 GB, free: 6.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009196/0.3932, allocations: 0.631 MB / 0.5872 GB, free: 5.453 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008597/0.3941, allocations: 115.3 kB / 0.5873 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.4057, allocations: 8.473 MB / 0.5955 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.4063, allocations: 1.012 MB / 0.5965 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009953/0.4074, allocations: 159.8 kB / 0.5967 GB, free: 11.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000802/0.4082, allocations: 383.3 kB / 0.597 GB, free: 10.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.143e-06/0.4082, allocations: 0 / 0.597 GB, free: 10.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06402/0.4722, allocations: 19.65 MB / 0.6162 GB, free: 7.355 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.34, allocations: 3.25 kB / 0.6162 GB, free: 7.355 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