Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer") translateModel(ModelicaTest.Electrical.SingularTransfomer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|basicTransformer.i1|basicTransformer.i2",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 206.3 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.9/1.9, allocations: 205.1 MB / 222.6 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4733/0.4733, allocations: 43.5 MB / 313.5 MB, free: 8.516 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 67.91 kB / 382 MB, free: 8.754 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1818, allocations: 57.79 MB / 439.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransfomer): time 0.004545/0.1864, allocations: 2.567 MB / 442.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1879, allocations: 0.6436 MB / 443 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.188, allocations: 4 kB / 443 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.1883, allocations: 31.7 kB / 443.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1884, allocations: 59.48 kB / 443.1 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003005/0.1887, allocations: 59.94 kB / 443.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.189, allocations: 270.8 kB / 443.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1893, allocations: 81 kB / 443.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.1895, allocations: 103.6 kB / 443.6 MB, free: 11.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.1896, allocations: 115.4 kB / 443.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.1897, allocations: 16 kB / 443.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.384e-05/0.1897, allocations: 16 kB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.379e-05/0.1898, allocations: 35.84 kB / 443.8 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.19, allocations: 127.4 kB / 443.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.1903, allocations: 267.3 kB / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1903, allocations: 0 / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1903, allocations: 0 / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1903, allocations: 0 / 444.2 MB, free: 10.46 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0008753/0.1912, allocations: 0.5341 MB / 444.7 MB, free: 9.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1912, allocations: 8.031 kB / 444.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.741e-05/0.1913, allocations: 32.66 kB / 444.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.1916, allocations: 248.5 kB / 445 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.1917, allocations: 12.81 kB / 445 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.468e-05/0.1917, allocations: 24.38 kB / 445 MB, free: 9.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.1921, allocations: 191.6 kB / 445.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.1921, allocations: 0 / 445.2 MB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.648e-05/0.1921, allocations: 11.98 kB / 445.2 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.1922, allocations: 8 kB / 445.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.1924, allocations: 133.7 kB / 445.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.1939, allocations: 0.818 MB / 446.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.1941, allocations: 106.5 kB / 446.3 MB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.583e-05/0.1942, allocations: 44.84 kB / 446.3 MB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.1942, allocations: 4 kB / 446.3 MB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.1943, allocations: 34.69 kB / 446.4 MB, free: 8.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.031e-06/0.1943, allocations: 0 / 446.4 MB, free: 8.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001835/0.1961, allocations: 0.7254 MB / 447.1 MB, free: 7.297 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1962, allocations: 55.41 kB / 447.2 MB, free: 7.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.1964, allocations: 211.7 kB / 447.4 MB, free: 7.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.1965, allocations: 29.7 kB / 447.4 MB, free: 6.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.1966, allocations: 167.8 kB / 447.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.17e-05/0.1967, allocations: 47.27 kB / 447.6 MB, free: 6.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.459e-05/0.1968, allocations: 49.61 kB / 447.6 MB, free: 6.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1969, allocations: 330.8 kB / 448 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.1971, allocations: 67.91 kB / 448 MB, free: 6.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1972, allocations: 101.1 kB / 448.1 MB, free: 6.195 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.1976, allocations: 173 kB / 448.3 MB, free: 6.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1976, allocations: 4 kB / 448.3 MB, free: 6.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005354/0.1981, allocations: 279 kB / 448.6 MB, free: 5.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1982, allocations: 4 kB / 448.6 MB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1982, allocations: 4 kB / 448.6 MB, free: 5.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.1984, allocations: 73.61 kB / 448.7 MB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1986, allocations: 27.98 kB / 448.7 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.2011, allocations: 2.815 MB / 451.5 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.2012, allocations: 11.98 kB / 451.5 MB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.2013, allocations: 8 kB / 451.5 MB, free: 2.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (18): * Single equations (assignments): 16 * 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,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.2014, allocations: 145.8 kB / 451.7 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.2015, allocations: 19.81 kB / 451.7 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.2015, allocations: 29.8 kB / 451.7 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2016, allocations: 0 / 451.7 MB, free: 2.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.2016, allocations: 4 kB / 451.7 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.2016, allocations: 0 / 451.7 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003472/0.2019, allocations: 281.5 kB / 452 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.2019, allocations: 0 / 452 MB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.955e-05/0.202, allocations: 15.98 kB / 452 MB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001926/0.2022, allocations: 69.67 kB / 452.1 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.2023, allocations: 11.94 kB / 452.1 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.26/0.4622, allocations: 2.785 MB / 454.9 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4623, allocations: 0.8125 kB / 454.9 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.4629, allocations: 396.6 kB / 455.3 MB, free: 47.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.463, allocations: 97.86 kB / 455.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.463, allocations: 2.656 kB / 455.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.4632, allocations: 22.05 kB / 455.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.4633, allocations: 10.95 kB / 455.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.4633, allocations: 8.203 kB / 455.4 MB, free: 47.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.4635, allocations: 157.6 kB / 455.6 MB, free: 47.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4635, allocations: 2.562 kB / 455.6 MB, free: 47.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.4639, allocations: 60.84 kB / 455.6 MB, free: 47.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (basicTransformer.i1) * 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 (9): * Single equations (assignments): 7 * 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,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001084/0.464, allocations: 98.34 kB / 455.7 MB, free: 47.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005933/0.4646, allocations: 419.7 kB / 456.1 MB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4646, allocations: 0 / 456.1 MB, free: 46.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.465, allocations: 323.4 kB / 456.4 MB, free: 46.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.4654, allocations: 36.97 kB / 456.5 MB, free: 46.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009376/0.4663, allocations: 0.5936 MB / 457.1 MB, free: 46.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001812/0.4665, allocations: 0.7507 MB / 457.8 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.259e-05/0.4666, allocations: 19.27 kB / 457.8 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.4667, allocations: 16 kB / 457.9 MB, free: 45.73 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4667, allocations: 0 / 457.9 MB, free: 45.73 MB / 382.1 MB Notification: Performance of Templates: time 0.005272/0.472, allocations: 2.554 MB / 460.4 MB, free: 45.62 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.SingularTransfomer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches