Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") translateModel(ModelicaTest.Electrical.Analog.TestGyrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gyrator.v1|gyrator.v2|gyrator.i1|gyrator.i2",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009364/0.0009363, allocations: 179.9 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.3 MB / 236 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009154/0.0009155, allocations: 91.8 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1825/0.1825, allocations: 44.16 MB / 382.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.558e-05/2.561e-05, allocations: 8.219 kB / 451.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 61.9 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3617/0.48, allocations: 86.32 MB / 0.586 GB, free: 3.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.4803, allocations: 67.97 kB / 0.586 GB, free: 2.953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003467/0.4837, allocations: 1.535 MB / 0.5875 GB, free: 1.426 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4838, allocations: 0 / 0.5875 GB, free: 1.426 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.4838, allocations: 4 kB / 0.5876 GB, free: 1.422 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003881/0.4842, allocations: 378.4 kB / 0.5879 GB, free: 1.004 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.4842, allocations: 12.03 kB / 0.5879 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.61e-05/0.4843, allocations: 7.906 kB / 0.5879 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.4844, allocations: 171 kB / 0.5881 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.4845, allocations: 8.234 kB / 0.5881 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.4845, allocations: 19.94 kB / 0.5881 GB, free: 0.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.4847, allocations: 122.2 kB / 0.5882 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.4847, allocations: 0 / 0.5882 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.4848, allocations: 4 kB / 0.5882 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.4848, allocations: 12 kB / 0.5883 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000116/0.4849, allocations: 59.94 kB / 0.5883 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.4858, allocations: 0.7157 MB / 0.589 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.73e-05/0.4859, allocations: 173.1 kB / 0.5892 GB, free: 15.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.4859, allocations: 80.14 kB / 0.5893 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.458e-05/0.486, allocations: 79.28 kB / 0.5893 GB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.275e-05/0.486, allocations: 113.8 kB / 0.5894 GB, free: 15.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.486, allocations: 3.938 kB / 0.5894 GB, free: 15.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 7.177e-05/0.4861, allocations: 33.61 kB / 0.5895 GB, free: 15.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.4862, allocations: 127.1 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.4863, allocations: 135.3 kB / 0.5897 GB, free: 14.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.4863, allocations: 25.7 kB / 0.5897 GB, free: 14.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.4864, allocations: 135.6 kB / 0.5899 GB, free: 14.81 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-06/0.4864, allocations: 2.953 kB / 0.5899 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.4864, allocations: 4 kB / 0.5899 GB, free: 14.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4865, allocations: 314.8 kB / 0.5902 GB, free: 14.49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.419e-05/0.4866, allocations: 8 kB / 0.5902 GB, free: 14.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.909e-05/0.4866, allocations: 45.09 kB / 0.5902 GB, free: 14.42 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.426e-05/0.4867, allocations: 19.98 kB / 0.5903 GB, free: 14.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4867, allocations: 0 / 0.5903 GB, free: 14.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001381/0.4868, allocations: 73.62 kB / 0.5903 GB, free: 14.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.4868, allocations: 8 kB / 0.5903 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4868, allocations: 0 / 0.5903 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.4869, allocations: 4 kB / 0.5903 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.879e-05/0.4869, allocations: 11.98 kB / 0.5903 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.4869, allocations: 0 / 0.5903 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.484e-05/0.487, allocations: 11.94 kB / 0.5904 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.487, allocations: 4 kB / 0.5904 GB, free: 14.29 MB / 410.7 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 (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.999e-05/0.4871, allocations: 192.1 kB / 0.5905 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.826e-05/0.4872, allocations: 112.9 kB / 0.5907 GB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.4872, allocations: 116.6 kB / 0.5908 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.63e-05/0.4873, allocations: 176.3 kB / 0.5909 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-05/0.4874, allocations: 180.2 kB / 0.5911 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-05/0.4875, allocations: 184.2 kB / 0.5913 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.4878, allocations: 447.9 kB / 0.5917 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-05/0.4878, allocations: 104.9 kB / 0.5918 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.217e-05/0.4879, allocations: 101 kB / 0.5919 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.228e-05/0.4879, allocations: 176.3 kB / 0.5921 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.488, allocations: 188.2 kB / 0.5922 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.189e-05/0.4881, allocations: 176.3 kB / 0.5924 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.843e-05/0.4882, allocations: 188.7 kB / 0.5926 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.4883, allocations: 311.7 kB / 0.5929 GB, free: 11.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.241e-05/0.4884, allocations: 189.9 kB / 0.5931 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.4885, allocations: 184.3 kB / 0.5933 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.586e-05/0.4886, allocations: 108.9 kB / 0.5934 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.061e-05/0.4887, allocations: 180.3 kB / 0.5935 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.4887, allocations: 105.1 kB / 0.5936 GB, free: 10.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.959e-05/0.4888, allocations: 112.6 kB / 0.5937 GB, free: 10.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4888, allocations: 0 / 0.5937 GB, free: 10.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002452/0.4891, allocations: 19.94 kB / 0.5938 GB, free: 10.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/0.4892, allocations: 166.5 kB / 0.5939 GB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.529e-05/0.4893, allocations: 27.92 kB / 0.5939 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4893, allocations: 0 / 0.5939 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.653e-06/0.4893, allocations: 0 / 0.5939 GB, free: 10.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.4896, allocations: 0.5262 MB / 0.5945 GB, free: 9.855 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002561/0.4899, allocations: 173.3 kB / 0.5946 GB, free: 9.664 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.4901, allocations: 0.6965 MB / 0.5953 GB, free: 8.941 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.75e-05/0.4902, allocations: 7.984 kB / 0.5953 GB, free: 8.934 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.022e-05/0.4902, allocations: 7.438 kB / 0.5953 GB, free: 8.926 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4902, allocations: 4 kB / 0.5953 GB, free: 8.922 MB / 410.7 MB Notification: Performance of Templates: time 0.002049/0.4923, allocations: 375.4 kB / 0.5957 GB, free: 8.559 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches