Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_trunk_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_trunk_ModelicaTest.Electrical.Analog.TestGyrator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 196.4 kB / 8.535 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 97.97 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.184/0.184, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.87e-06/4.89e-06, allocations: 0 / 452.6 MB, free: 76.18 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09558, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2895/0.3851, allocations: 86.63 MB / 0.5884 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.3853, allocations: 66.02 kB / 0.5884 GB, free: 176 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.003138/0.3885, allocations: 1.219 MB / 0.5896 GB, free: 15.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.3885, allocations: 4 kB / 0.5896 GB, free: 15.16 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.000372/0.3889, allocations: 380.6 kB / 0.59 GB, free: 14.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3889, allocations: 8.031 kB / 0.59 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.296e-05/0.389, allocations: 11.91 kB / 0.59 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.3891, allocations: 171.7 kB / 0.5902 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.3892, allocations: 4 kB / 0.5902 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.3892, allocations: 8 kB / 0.5902 GB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000133/0.3893, allocations: 53.16 kB / 0.5902 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000168/0.3895, allocations: 111.3 kB / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.3895, allocations: 0 / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.3895, allocations: 0 / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3896, allocations: 4 kB / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007515/0.3903, allocations: 0.6845 MB / 0.591 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.3904, allocations: 165.1 kB / 0.5912 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.3905, allocations: 80.14 kB / 0.5912 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.3905, allocations: 87.12 kB / 0.5913 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.3906, allocations: 117.8 kB / 0.5914 GB, free: 13.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=0): time 3.046e-06/0.3906, allocations: 3.984 kB / 0.5914 GB, free: 13.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=0): time 7.854e-05/0.3907, allocations: 28.44 kB / 0.5915 GB, free: 13.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3907, allocations: 55.41 kB / 0.5915 GB, free: 13.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.3908, allocations: 108 kB / 0.5916 GB, free: 13.01 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.3909, allocations: 25.7 kB / 0.5917 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.754e-05/0.3909, allocations: 126.9 kB / 0.5918 GB, free: 12.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.837e-06/0.391, allocations: 8 kB / 0.5918 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-06/0.391, allocations: 0 / 0.5918 GB, free: 12.85 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3911, allocations: 314.8 kB / 0.5921 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.3911, allocations: 7.25 kB / 0.5921 GB, free: 12.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.589e-05/0.3912, allocations: 42.78 kB / 0.5921 GB, free: 12.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.097e-05/0.3912, allocations: 15.25 kB / 0.5921 GB, free: 12.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3912, allocations: 0 / 0.5921 GB, free: 12.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001535/0.3914, allocations: 64.16 kB / 0.5922 GB, free: 12.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3914, allocations: 4 kB / 0.5922 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.3914, allocations: 4 kB / 0.5922 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3914, allocations: 4.125 kB / 0.5922 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.411e-05/0.3915, allocations: 19.98 kB / 0.5922 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3915, allocations: 0 / 0.5922 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.147e-05/0.3915, allocations: 7.938 kB / 0.5922 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3916, allocations: 3.906 kB / 0.5922 GB, free: 12.36 MB / 394.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 9.203e-05/0.3917, allocations: 180.3 kB / 0.5924 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.974e-05/0.3917, allocations: 104.9 kB / 0.5925 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.823e-05/0.3918, allocations: 111.2 kB / 0.5926 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-05/0.3919, allocations: 188.2 kB / 0.5928 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.963e-05/0.392, allocations: 184.1 kB / 0.593 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.22e-05/0.392, allocations: 176.3 kB / 0.5931 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.3922, allocations: 404.6 kB / 0.5935 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.284e-05/0.3923, allocations: 108.9 kB / 0.5936 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.3923, allocations: 109.4 kB / 0.5937 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.761e-05/0.3924, allocations: 176.3 kB / 0.5939 GB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.257e-05/0.3925, allocations: 190.2 kB / 0.5941 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.468e-05/0.3926, allocations: 184.2 kB / 0.5943 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-05/0.3926, allocations: 176.3 kB / 0.5944 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001228/0.3928, allocations: 315.5 kB / 0.5947 GB, free: 9.664 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/0.3928, allocations: 182 kB / 0.5949 GB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.3929, allocations: 184.2 kB / 0.5951 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.412e-05/0.393, allocations: 107.7 kB / 0.5952 GB, free: 9.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.271e-05/0.3931, allocations: 180.2 kB / 0.5954 GB, free: 8.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.3931, allocations: 108.9 kB / 0.5955 GB, free: 8.871 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.013e-05/0.3932, allocations: 86.97 kB / 0.5955 GB, free: 8.789 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002532/0.3934, allocations: 23.84 kB / 0.5956 GB, free: 8.766 MB / 394.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.0001109/0.3935, allocations: 166.5 kB / 0.5957 GB, free: 8.594 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.813e-05/0.3936, allocations: 19.67 kB / 0.5957 GB, free: 8.578 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3936, allocations: 4 kB / 0.5958 GB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.82e-07/0.3936, allocations: 384 / 0.5958 GB, free: 8.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.394, allocations: 0.5213 MB / 0.5963 GB, free: 8.051 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.3942, allocations: 170.6 kB / 0.5964 GB, free: 7.867 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.3945, allocations: 0.7036 MB / 0.5971 GB, free: 7.137 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/0.3945, allocations: 4 kB / 0.5971 GB, free: 7.133 MB / 394.7 MB Notification: Performance of Templates: time 0.001841/0.3964, allocations: 307.8 kB / 0.5974 GB, free: 6.84 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches