Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 178.5 kB / 16.71 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 225.7 MB / 243.2 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007733/0.0007733, allocations: 97.72 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002138/0.0002139, allocations: 8 kB / 354.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1855, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003039/0.1886, allocations: 4.599 MB / 409.2 MB, free: 26.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006483/0.195, allocations: 9.979 MB / 419.2 MB, free: 16.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003032/0.1954, allocations: 23.81 kB / 419.2 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006176/0.196, allocations: 350.2 kB / 419.5 MB, free: 16.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.1973, allocations: 0.6911 MB / 420.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007563/0.198, allocations: 477.9 kB / 420.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001556/0.1996, allocations: 1.626 MB / 422.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001846/0.1998, allocations: 143.6 kB / 422.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.2, allocations: 286.5 kB / 422.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.2002, allocations: 309.9 kB / 423 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.232e-05/0.2003, allocations: 16 kB / 423 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008847/0.2012, allocations: 0.593 MB / 423.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.881e-05/0.2012, allocations: 87.33 kB / 423.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002261/0.2015, allocations: 415.2 kB / 424.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008267/0.2023, allocations: 1.152 MB / 425.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2023, allocations: 3.938 kB / 425.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2023, allocations: 4 kB / 425.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2023, allocations: 3.938 kB / 425.3 MB, free: 10.2 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.001167/0.2035, allocations: 1.136 MB / 426.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.2036, allocations: 8.031 kB / 426.4 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.737e-05/0.2036, allocations: 115.6 kB / 426.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008082/0.2045, allocations: 0.8482 MB / 427.4 MB, free: 7.988 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.2045, allocations: 16.56 kB / 427.4 MB, free: 7.973 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.2045, allocations: 31.84 kB / 427.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003936/0.2049, allocations: 307.7 kB / 427.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2049, allocations: 3.938 kB / 427.7 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.205, allocations: 12 kB / 427.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.205, allocations: 15.98 kB / 427.8 MB, free: 7.602 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.2053, allocations: 230.1 kB / 428 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.2066, allocations: 1.194 MB / 429.2 MB, free: 6.109 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.2068, allocations: 194.6 kB / 429.4 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.2071, allocations: 227.9 kB / 429.6 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006295/0.2134, allocations: 8.589 MB / 438.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.2135, allocations: 34.56 kB / 438.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.2135, allocations: 0 / 438.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001433/0.2149, allocations: 0.6699 MB / 438.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.215, allocations: 77.11 kB / 439 MB, free: 10.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007976/0.2158, allocations: 0.8024 MB / 439.8 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.2158, allocations: 25.7 kB / 439.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.2161, allocations: 440.7 kB / 440.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.337e-05/0.2162, allocations: 78.83 kB / 440.3 MB, free: 9.504 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.2162, allocations: 4 kB / 440.3 MB, free: 9.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.645e-05/0.2163, allocations: 325.9 kB / 440.6 MB, free: 9.176 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.2164, allocations: 68.2 kB / 440.7 MB, free: 9.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.2166, allocations: 141.9 kB / 440.8 MB, free: 8.938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.2169, allocations: 238.8 kB / 441.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2169, allocations: 3.938 kB / 441.1 MB, free: 8.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005219/0.2175, allocations: 409.1 kB / 441.5 MB, free: 8.262 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.2175, allocations: 8 kB / 441.5 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.2175, allocations: 16 kB / 441.5 MB, free: 8.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.2178, allocations: 132.8 kB / 441.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.218, allocations: 44 kB / 441.7 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005283/0.2185, allocations: 0.7084 MB / 442.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.2188, allocations: 23.75 kB / 442.4 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.974e-05/0.2188, allocations: 12 kB / 442.4 MB, free: 7.293 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.000201/0.219, allocations: 210.2 kB / 442.6 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2191, allocations: 102.8 kB / 442.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007244/0.2199, allocations: 414.1 kB / 443.1 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2199, allocations: 4 kB / 443.1 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2199, allocations: 0 / 443.1 MB, free: 6.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.2199, allocations: 4 kB / 443.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.2204, allocations: 0.5112 MB / 443.6 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.2204, allocations: 12 kB / 443.6 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.2205, allocations: 15.98 kB / 443.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002448/0.2208, allocations: 140.7 kB / 443.8 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.2208, allocations: 11.94 kB / 443.8 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004937/0.2213, allocations: 0.6967 MB / 444.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2213, allocations: 8.016 kB / 444.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004886/0.2218, allocations: 447.8 kB / 445 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.222, allocations: 175.8 kB / 445.1 MB, free: 4.438 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.361e-05/0.222, allocations: 4 kB / 445.1 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001937/0.2222, allocations: 4 kB / 445.1 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.055e-05/0.2223, allocations: 19.97 kB / 445.2 MB, free: 4.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.2223, allocations: 15.98 kB / 445.2 MB, free: 4.395 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005235/0.2229, allocations: 0.5305 MB / 445.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2229, allocations: 0 / 445.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004594/0.2233, allocations: 199.8 kB / 445.9 MB, free: 3.66 MB / 314.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.0004364/0.2238, allocations: 304 kB / 446.2 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.2243, allocations: 281.1 kB / 446.5 MB, free: 3.066 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2243, allocations: 0 / 446.5 MB, free: 3.066 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.2246, allocations: 179.8 kB / 446.6 MB, free: 2.879 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00066/0.2252, allocations: 160.2 kB / 446.8 MB, free: 2.723 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.2269, allocations: 1.492 MB / 448.3 MB, free: 1.203 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2273, allocations: 0.9377 MB / 449.2 MB, free: 244 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.2277, allocations: 106.7 kB / 449.3 MB, free: 132 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.949e-05/0.2277, allocations: 47.44 kB / 449.4 MB, free: 84 kB / 314.7 MB Notification: Performance of SimCode: time 2e-07/0.2277, allocations: 4 kB / 449.4 MB, free: 80 kB / 314.7 MB Notification: Performance of Templates: time 0.01443/0.2422, allocations: 8.732 MB / 458.1 MB, free: 7.395 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches