Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.re|v.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection") translateModel(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|v.re|v.im",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 105.4 kB / 18.4 MB, free: 4.57 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 188 kB / 19.34 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 222.9 MB / 243 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2781/0.2781, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001302, allocations: 67.06 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1758, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection): time 0.009782/0.1857, allocations: 6.925 MB / 477.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005895/0.1916, allocations: 2.202 MB / 479.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.1929, allocations: 27.94 kB / 479.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00381/0.1968, allocations: 1.527 MB / 481.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003186/0.2, allocations: 0.8253 MB / 482.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001685/0.2017, allocations: 0.5803 MB / 482.8 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002346/0.2041, allocations: 1.152 MB / 484 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001628/0.2057, allocations: 0.8159 MB / 484.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.2069, allocations: 478.1 kB / 485.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007657/0.2076, allocations: 0.6068 MB / 485.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.2078, allocations: 92 kB / 485.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000976/0.2088, allocations: 279.8 kB / 486.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002264/0.209, allocations: 251 kB / 486.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006318/0.2097, allocations: 0.5441 MB / 487 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002276/0.212, allocations: 1.456 MB / 488.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.212, allocations: 0 / 488.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.212, allocations: 4 kB / 488.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.805e-05/0.212, allocations: 0 / 488.5 MB, free: 11.83 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.004982/0.217, allocations: 1.686 MB / 490.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.2171, allocations: 8.031 kB / 490.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009357/0.2265, allocations: 1.319 MB / 491.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.2282, allocations: 0.5413 MB / 492 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.916e-05/0.2283, allocations: 90.34 kB / 492.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/0.2285, allocations: 119.9 kB / 492.2 MB, free: 7.969 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.2307, allocations: 1.145 MB / 493.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.619e-05/0.2308, allocations: 0 / 493.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.2309, allocations: 52 kB / 493.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.2309, allocations: 28 kB / 493.4 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/0.2333, allocations: 1.372 MB / 494.8 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00793/0.2412, allocations: 4.642 MB / 499.4 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.2431, allocations: 0.9302 MB / 0.4887 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006207/0.2437, allocations: 367.7 kB / 0.489 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.2439, allocations: 102.1 kB / 0.4891 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.2439, allocations: 39.56 kB / 0.4891 GB, free: 14.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=89): time 3.437e-06/0.2439, allocations: 0 / 0.4891 GB, free: 14.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=89): time 0.002377/0.2463, allocations: 1.194 MB / 0.4903 GB, free: 13.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.2464, allocations: 60.41 kB / 0.4904 GB, free: 13.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.2476, allocations: 0.7816 MB / 0.4911 GB, free: 12.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.227e-05/0.2477, allocations: 41.7 kB / 0.4912 GB, free: 12.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.2481, allocations: 463 kB / 0.4916 GB, free: 12.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002948/0.2484, allocations: 303.6 kB / 0.4919 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00035/0.2488, allocations: 178.9 kB / 0.4921 GB, free: 11.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002688/0.249, allocations: 394.7 kB / 0.4924 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000656/0.2497, allocations: 338.5 kB / 0.4928 GB, free: 11.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/0.2507, allocations: 0.5661 MB / 0.4933 GB, free: 10.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.2522, allocations: 0.9192 MB / 0.4942 GB, free: 9.438 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.2522, allocations: 11.88 kB / 0.4942 GB, free: 9.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002229/0.2544, allocations: 1.119 MB / 0.4953 GB, free: 8.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.2545, allocations: 8 kB / 0.4953 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.2545, allocations: 11.97 kB / 0.4953 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.2549, allocations: 65.67 kB / 0.4954 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.2559, allocations: 247.6 kB / 0.4956 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002789/0.2587, allocations: 2.828 MB / 0.4984 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009486/0.2597, allocations: 142.5 kB / 0.4985 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.2598, allocations: 48 kB / 0.4986 GB, free: 4.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (133): * Single equations (assignments): 131 * 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.0005425/0.2603, allocations: 245.5 kB / 0.4988 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.2605, allocations: 86.97 kB / 0.4989 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.2626, allocations: 1.102 MB / 0.5 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.477e-05/0.2627, allocations: 12 kB / 0.5 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2627, allocations: 0 / 0.5 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.2627, allocations: 3.984 kB / 0.5 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004562/0.2673, allocations: 2.689 MB / 0.5026 GB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.2673, allocations: 11.94 kB / 0.5026 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007586/0.2681, allocations: 179.7 kB / 0.5028 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.2683, allocations: 61.67 kB / 0.5029 GB, free: 0 / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.3898/0.6582, allocations: 27.14 kB / 0.5029 GB, free: 47.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.6606, allocations: 2.815 MB / 0.5056 GB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/0.6607, allocations: 8.812 kB / 0.5056 GB, free: 45.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.6637, allocations: 1.463 MB / 0.5071 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003602/0.6641, allocations: 199.5 kB / 0.5073 GB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/0.6643, allocations: 25.77 kB / 0.5073 GB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.6649, allocations: 51.77 kB / 0.5073 GB, free: 44.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002196/0.6652, allocations: 80.83 kB / 0.5074 GB, free: 44.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.6652, allocations: 32.16 kB / 0.5074 GB, free: 44.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009572/0.6662, allocations: 0.5527 MB / 0.508 GB, free: 44.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6662, allocations: 4 kB / 0.508 GB, free: 44.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001115/0.6673, allocations: 290.1 kB / 0.5083 GB, free: 44.52 MB / 382.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 (92): * Single equations (assignments): 90 * 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.0003302/0.6677, allocations: 169.3 kB / 0.5084 GB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002224/0.6699, allocations: 1.064 MB / 0.5095 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.6699, allocations: 1.406 kB / 0.5095 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.6709, allocations: 0.6195 MB / 0.5101 GB, free: 43.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.6717, allocations: 119.8 kB / 0.5102 GB, free: 43.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.675, allocations: 1.767 MB / 0.5119 GB, free: 42.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007258/0.6757, allocations: 0.9869 MB / 0.5129 GB, free: 41.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000639/0.6764, allocations: 149.1 kB / 0.513 GB, free: 41.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.6767, allocations: 77.75 kB / 0.5131 GB, free: 41.71 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6767, allocations: 1.406 kB / 0.5131 GB, free: 41.71 MB / 382.1 MB Notification: Performance of Templates: time 0.02364/0.7003, allocations: 10.24 MB / 0.5231 GB, free: 39.39 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.QuasiStatic.SinglePhase.SerialConnection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches