Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001418, allocations: 192.2 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.732/1.732, allocations: 229.5 MB / 247.7 MB, free: 6.312 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007841/0.0007843, allocations: 97.53 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001914/0.0001914, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1824, allocations: 51.42 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003245/0.1857, allocations: 4.604 MB / 416.7 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006661/0.1924, allocations: 10.34 MB / 427 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.1927, allocations: 15.88 kB / 427 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006152/0.1933, allocations: 346.2 kB / 427.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001205/0.1946, allocations: 0.695 MB / 428 MB, free: 9.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007768/0.1953, allocations: 477.9 kB / 428.5 MB, free: 9.012 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001613/0.197, allocations: 1.658 MB / 430.2 MB, free: 7.348 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1972, allocations: 147.6 kB / 430.3 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.1974, allocations: 286.5 kB / 430.6 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.1976, allocations: 310 kB / 430.9 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.437e-05/0.1977, allocations: 16 kB / 430.9 MB, free: 6.586 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009203/0.1986, allocations: 0.5969 MB / 431.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.182e-05/0.1987, allocations: 91.31 kB / 431.6 MB, free: 5.898 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.1989, allocations: 415.2 kB / 432 MB, free: 5.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009084/0.1999, allocations: 1.175 MB / 433.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1999, allocations: 0 / 433.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1999, allocations: 0 / 433.2 MB, free: 4.305 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1999, allocations: 0 / 433.2 MB, free: 4.305 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001171/0.2011, allocations: 1.139 MB / 434.3 MB, free: 3.113 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.2011, allocations: 8.031 kB / 434.3 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.2013, allocations: 131.6 kB / 434.5 MB, free: 2.977 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008529/0.2022, allocations: 0.8482 MB / 435.3 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.2022, allocations: 24.55 kB / 435.3 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.2023, allocations: 27.91 kB / 435.4 MB, free: 2.023 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/0.2027, allocations: 307.6 kB / 435.7 MB, free: 1.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2027, allocations: 4 kB / 435.7 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.2027, allocations: 8 kB / 435.7 MB, free: 1.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2028, allocations: 8 kB / 435.7 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003399/0.2031, allocations: 238.1 kB / 435.9 MB, free: 1.457 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.2044, allocations: 1.194 MB / 437.1 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002973/0.2047, allocations: 194.7 kB / 437.3 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.205, allocations: 225.9 kB / 437.5 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007642/0.2127, allocations: 8.901 MB / 446.4 MB, free: 5.398 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.2127, allocations: 34.56 kB / 446.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.532e-06/0.2127, allocations: 0 / 446.4 MB, free: 5.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001518/0.2142, allocations: 0.6759 MB / 447.1 MB, free: 4.652 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.2143, allocations: 81.11 kB / 447.2 MB, free: 4.555 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008336/0.2151, allocations: 0.7986 MB / 448 MB, free: 3.738 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.2152, allocations: 25.7 kB / 448 MB, free: 3.707 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/0.2155, allocations: 440.7 kB / 448.5 MB, free: 3.273 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.303e-05/0.2155, allocations: 74.86 kB / 448.5 MB, free: 3.199 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.2156, allocations: 7.938 kB / 448.5 MB, free: 3.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2157, allocations: 321.9 kB / 448.8 MB, free: 2.871 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.2158, allocations: 64.2 kB / 448.9 MB, free: 2.809 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.216, allocations: 149.9 kB / 449.1 MB, free: 2.633 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003343/0.2164, allocations: 242.8 kB / 449.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2164, allocations: 0 / 449.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000564/0.217, allocations: 403.2 kB / 449.7 MB, free: 1.965 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.217, allocations: 16.2 kB / 449.7 MB, free: 1.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.217, allocations: 16 kB / 449.7 MB, free: 1.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003221/0.2173, allocations: 134 kB / 449.8 MB, free: 1.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.2175, allocations: 39.91 kB / 449.9 MB, free: 1.762 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005785/0.2181, allocations: 0.7045 MB / 450.6 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.2183, allocations: 31.73 kB / 450.6 MB, free: 1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/0.2184, allocations: 12 kB / 450.6 MB, free: 0.9883 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002185/0.2186, allocations: 201.7 kB / 450.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.2187, allocations: 106.8 kB / 450.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007608/0.2195, allocations: 425.3 kB / 451.4 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2195, allocations: 0 / 451.4 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2195, allocations: 0 / 451.4 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2195, allocations: 4 kB / 451.4 MB, free: 252 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.2201, allocations: 0.5073 MB / 451.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.621e-05/0.2201, allocations: 11.98 kB / 451.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.2202, allocations: 19.98 kB / 451.9 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002554/0.2205, allocations: 136.7 kB / 452 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.2205, allocations: 19.92 kB / 452 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005426/0.2211, allocations: 0.7005 MB / 452.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2211, allocations: 4.031 kB / 452.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.2216, allocations: 451.8 kB / 453.2 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.2218, allocations: 171.8 kB / 453.4 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.2219, allocations: 11.98 kB / 453.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.2221, allocations: 0 / 453.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.2222, allocations: 23.92 kB / 453.4 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2222, allocations: 8 kB / 453.4 MB, free: 14.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005885/0.2228, allocations: 0.5305 MB / 453.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2228, allocations: 4 kB / 453.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.2233, allocations: 195.8 kB / 454.1 MB, free: 13.35 MB / 330.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004498/0.2237, allocations: 307.3 kB / 454.4 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005434/0.2243, allocations: 277.6 kB / 454.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2243, allocations: 0 / 454.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.2246, allocations: 184.1 kB / 454.9 MB, free: 12.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006918/0.2253, allocations: 160.2 kB / 455 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.227, allocations: 1.495 MB / 456.5 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.2275, allocations: 0.9415 MB / 457.5 MB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003604/0.2278, allocations: 110.7 kB / 457.6 MB, free: 9.797 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.568e-05/0.2279, allocations: 51.44 kB / 457.6 MB, free: 9.746 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2279, allocations: 0 / 457.6 MB, free: 9.746 MB / 330.7 MB Notification: Performance of Templates: time 0.01509/0.243, allocations: 8.764 MB / 466.4 MB, free: 1.039 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches