Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Electrical.SingularTransfomer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 88.84 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2985/0.2985, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.013e-05/2.025e-05, allocations: 4.219 kB / 418.2 MB, free: 41.06 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4228/0.4229, allocations: 58.85 MB / 477.1 MB, free: 5.27 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.6536, allocations: 86.33 MB / 0.5502 GB, free: 12.99 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.654, allocations: 59.97 kB / 0.5503 GB, free: 12.93 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01733/0.6713, allocations: 3.866 MB / 0.554 GB, free: 9.043 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6714, allocations: 0 / 0.554 GB, free: 9.043 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.6714, allocations: 4 kB / 0.554 GB, free: 9.039 MB / 395.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.001028/0.6724, allocations: 490.2 kB / 0.5545 GB, free: 8.516 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.6725, allocations: 12.03 kB / 0.5545 GB, free: 8.504 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.696e-05/0.6726, allocations: 27.67 kB / 0.5545 GB, free: 8.477 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.6731, allocations: 247 kB / 0.5548 GB, free: 8.195 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.6732, allocations: 8 kB / 0.5548 GB, free: 8.188 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.383e-05/0.6732, allocations: 14.95 kB / 0.5548 GB, free: 8.176 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003795/0.6736, allocations: 116.9 kB / 0.5549 GB, free: 8.059 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.6741, allocations: 146.5 kB / 0.555 GB, free: 7.914 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.6741, allocations: 4 kB / 0.5551 GB, free: 7.91 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.6741, allocations: 0 / 0.5551 GB, free: 7.91 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.6742, allocations: 8 kB / 0.5551 GB, free: 7.902 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.6761, allocations: 0.7632 MB / 0.5558 GB, free: 7.074 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002298/0.6764, allocations: 85.03 kB / 0.5559 GB, free: 6.984 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.6765, allocations: 40.84 kB / 0.5559 GB, free: 6.941 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.525e-05/0.6765, allocations: 4 kB / 0.5559 GB, free: 6.938 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.6766, allocations: 42.56 kB / 0.556 GB, free: 6.887 MB / 395.1 MB Notification: Performance of pre-optimization done (n=10): time 2.846e-06/0.6766, allocations: 192 / 0.556 GB, free: 6.887 MB / 395.1 MB Notification: Performance of matching and sorting (n=16): time 0.002126/0.6787, allocations: 0.6041 MB / 0.5566 GB, free: 6.223 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.6788, allocations: 55.39 kB / 0.5566 GB, free: 6.156 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.6791, allocations: 173.9 kB / 0.5568 GB, free: 5.977 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.6791, allocations: 25.7 kB / 0.5568 GB, free: 5.945 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.6793, allocations: 230.4 kB / 0.557 GB, free: 5.719 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.196e-05/0.6794, allocations: 51.2 kB / 0.5571 GB, free: 5.668 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.6794, allocations: 0 / 0.5571 GB, free: 5.668 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6796, allocations: 330.8 kB / 0.5574 GB, free: 5.336 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.6797, allocations: 44 kB / 0.5574 GB, free: 5.293 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.6799, allocations: 95.92 kB / 0.5575 GB, free: 5.184 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.6801, allocations: 51.98 kB / 0.5576 GB, free: 5.133 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.6801, allocations: 4.375 kB / 0.5576 GB, free: 5.129 MB / 395.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006933/0.6808, allocations: 226.3 kB / 0.5578 GB, free: 4.898 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.6809, allocations: 4 kB / 0.5578 GB, free: 4.895 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.6809, allocations: 8.484 kB / 0.5578 GB, free: 4.887 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/0.6813, allocations: 73.78 kB / 0.5579 GB, free: 4.809 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.6816, allocations: 35.97 kB / 0.5579 GB, free: 4.773 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.6847, allocations: 2.677 MB / 0.5605 GB, free: 1.867 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.6851, allocations: 8.031 kB / 0.5605 GB, free: 1.859 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.6851, allocations: 8.203 kB / 0.5605 GB, free: 1.852 MB / 395.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 () * 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 (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%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.6853, allocations: 112.9 kB / 0.5606 GB, free: 1.734 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.965e-05/0.6854, allocations: 23.7 kB / 0.5607 GB, free: 1.711 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.6855, allocations: 22.03 kB / 0.5607 GB, free: 1.691 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.6855, allocations: 0 / 0.5607 GB, free: 1.691 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.6855, allocations: 4 kB / 0.5607 GB, free: 1.688 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.6855, allocations: 3.984 kB / 0.5607 GB, free: 1.684 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004135/0.6859, allocations: 238.1 kB / 0.5609 GB, free: 1.414 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.686, allocations: 0 / 0.5609 GB, free: 1.414 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.6862, allocations: 19.98 kB / 0.5609 GB, free: 1.395 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003415/0.6865, allocations: 77.56 kB / 0.561 GB, free: 1.312 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/0.6866, allocations: 0 / 0.561 GB, free: 1.312 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003105/0.6897, allocations: 2.669 MB / 0.5636 GB, free: 14.42 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/0.6897, allocations: 4.031 kB / 0.5636 GB, free: 14.41 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008177/0.6906, allocations: 344.9 kB / 0.564 GB, free: 14.05 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.6907, allocations: 92.86 kB / 0.564 GB, free: 13.95 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.6907, allocations: 3.984 kB / 0.564 GB, free: 13.94 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.6911, allocations: 16.06 kB / 0.5641 GB, free: 13.93 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.267e-05/0.6912, allocations: 23.92 kB / 0.5641 GB, free: 13.9 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.6912, allocations: 4 kB / 0.5641 GB, free: 13.9 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.6914, allocations: 135.2 kB / 0.5642 GB, free: 13.77 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6914, allocations: 0 / 0.5642 GB, free: 13.77 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0005532/0.692, allocations: 56 kB / 0.5643 GB, free: 13.71 MB / 411.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 () * 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 (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%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001685/0.6922, allocations: 107.2 kB / 0.5644 GB, free: 13.6 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0008317/0.693, allocations: 363.3 kB / 0.5647 GB, free: 13.22 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.693, allocations: 0 / 0.5647 GB, free: 13.22 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005658/0.6936, allocations: 295.8 kB / 0.565 GB, free: 12.91 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.694, allocations: 16.17 kB / 0.565 GB, free: 12.89 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.6951, allocations: 367.1 kB / 0.5654 GB, free: 12.5 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.6956, allocations: 0.7516 MB / 0.5661 GB, free: 11.73 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.363e-05/0.6957, allocations: 23.42 kB / 0.5661 GB, free: 11.7 MB / 411.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6957, allocations: 3.938 kB / 0.5661 GB, free: 11.7 MB / 411.1 MB Notification: Performance of Templates: time 0.009614/0.7053, allocations: 4.257 MB / 0.5703 GB, free: 7.441 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/SingularTransfomer/SingularTransfomer.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.SingularTransfomer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches