Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 103.5 kB / 20.43 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 180.1 kB / 23.7 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 51.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2392, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006334/0.2455, allocations: 4.64 MB / 427.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.2566, allocations: 7.835 MB / 435 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000693/0.2573, allocations: 63.31 kB / 435.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.2584, allocations: 361.5 kB / 435.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002662/0.261, allocations: 0.8419 MB / 436.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002272/0.2633, allocations: 0.5909 MB / 436.9 MB, free: 8 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003856/0.2671, allocations: 1.697 MB / 438.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.2675, allocations: 103.3 kB / 438.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006627/0.2682, allocations: 322.5 kB / 439 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006183/0.2688, allocations: 306 kB / 439.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.072e-05/0.2689, allocations: 28 kB / 439.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002037/0.2709, allocations: 0.558 MB / 439.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.271, allocations: 103.4 kB / 440 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004817/0.2715, allocations: 306.1 kB / 440.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002481/0.274, allocations: 1.218 MB / 441.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.274, allocations: 4 kB / 441.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.274, allocations: 0 / 441.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.274, allocations: 3.938 kB / 441.5 MB, free: 11.35 MB / 350.1 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.002436/0.2765, allocations: 1.23 MB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2765, allocations: 12.03 kB / 442.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.888e-05/0.2766, allocations: 66.67 kB / 442.8 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.2767, allocations: 120.2 kB / 442.9 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.2781, allocations: 0.777 MB / 443.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.2781, allocations: 20.5 kB / 443.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.184e-05/0.2782, allocations: 24 kB / 443.8 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.2787, allocations: 341.4 kB / 444.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2787, allocations: 0 / 444.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.2788, allocations: 12 kB / 444.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2788, allocations: 4 kB / 444.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.2792, allocations: 238 kB / 444.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.2811, allocations: 1.101 MB / 445.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003823/0.2815, allocations: 174.7 kB / 445.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003531/0.2818, allocations: 201.2 kB / 445.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007059/0.2889, allocations: 3.08 MB / 448.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.2889, allocations: 34.55 kB / 448.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.2889, allocations: 0 / 448.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001629/0.2906, allocations: 0.579 MB / 449.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.2906, allocations: 85 kB / 449.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009753/0.2916, allocations: 0.7987 MB / 450.4 MB, free: 2.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.2916, allocations: 29.7 kB / 450.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004081/0.292, allocations: 457 kB / 450.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.158e-05/0.2921, allocations: 79.27 kB / 450.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.616e-05/0.2922, allocations: 57.94 kB / 451 MB, free: 1.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2924, allocations: 321.9 kB / 451.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2925, allocations: 64.2 kB / 451.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.2927, allocations: 172.8 kB / 451.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003718/0.2931, allocations: 224.5 kB / 451.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2931, allocations: 0 / 451.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006641/0.2938, allocations: 415 kB / 452.2 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.2938, allocations: 8 kB / 452.2 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/0.2938, allocations: 15.98 kB / 452.2 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003608/0.2942, allocations: 136.7 kB / 452.3 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.2943, allocations: 39.91 kB / 452.4 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007245/0.2951, allocations: 0.7079 MB / 453.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.2953, allocations: 31.77 kB / 453.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.2954, allocations: 16 kB / 453.1 MB, free: 15.36 MB / 366.1 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.0002524/0.2956, allocations: 197.8 kB / 453.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.2957, allocations: 107.3 kB / 453.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008015/0.2965, allocations: 399.6 kB / 453.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2966, allocations: 0 / 453.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2966, allocations: 0 / 453.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.2966, allocations: 4 kB / 453.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006205/0.2972, allocations: 478.5 kB / 454.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/0.2972, allocations: 8 kB / 454.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.2973, allocations: 19.97 kB / 454.3 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003033/0.2976, allocations: 148.6 kB / 454.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.2977, allocations: 8 kB / 454.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006699/0.2983, allocations: 0.6968 MB / 455.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2983, allocations: 0 / 455.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006359/0.299, allocations: 459.3 kB / 455.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.2992, allocations: 99.27 kB / 455.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.2993, allocations: 4 kB / 455.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.2995, allocations: 7.984 kB / 455.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.2995, allocations: 15.98 kB / 455.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2995, allocations: 8 kB / 455.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007005/0.3002, allocations: 0.5538 MB / 456.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3002, allocations: 0 / 456.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005735/0.3008, allocations: 187.7 kB / 456.5 MB, free: 11.88 MB / 366.1 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.001518/0.3023, allocations: 1.177 MB / 457.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005993/0.3029, allocations: 271.4 kB / 457.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3029, allocations: 0 / 457.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.3032, allocations: 159.3 kB / 458.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008031/0.304, allocations: 170.8 kB / 458.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007621/0.3117, allocations: 5.333 MB / 463.6 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.312, allocations: 345.4 kB / 463.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.3124, allocations: 110.7 kB / 464 MB, free: 4.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003777/0.3127, allocations: 311.3 kB / 464.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3127, allocations: 0 / 464.3 MB, free: 3.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05508/0.3678, allocations: 18.83 MB / 483.1 MB, free: 1.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.58, allocations: 3.375 kB / 483.1 MB, free: 1.188 MB / 382.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.D.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J2.D.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable RC.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable RC.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable J1.D.v in file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J1.D.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.003651837818325]