Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 211.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.626/1.626, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 48.06 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2413, allocations: 53.38 MB / 431.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006026/0.2473, allocations: 4.642 MB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.2578, allocations: 7.878 MB / 443.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.2583, allocations: 63.31 kB / 443.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008699/0.2592, allocations: 353.6 kB / 444 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.2612, allocations: 0.8458 MB / 444.9 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.2626, allocations: 0.5987 MB / 445.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002425/0.265, allocations: 1.729 MB / 447.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.2652, allocations: 107.3 kB / 447.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004399/0.2657, allocations: 330.5 kB / 447.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000411/0.2661, allocations: 322 kB / 447.9 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.396e-05/0.2661, allocations: 32 kB / 448 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001214/0.2673, allocations: 0.597 MB / 448.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.2675, allocations: 107.3 kB / 448.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.2678, allocations: 306.1 kB / 449 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001562/0.2693, allocations: 1.225 MB / 450.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.2693, allocations: 7.938 kB / 450.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2693, allocations: 0 / 450.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2694, allocations: 4 kB / 450.2 MB, free: 3.746 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.001955/0.2713, allocations: 1.238 MB / 451.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.2713, allocations: 8.031 kB / 451.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.121e-05/0.2714, allocations: 58.73 kB / 451.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.2717, allocations: 136.2 kB / 451.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.273, allocations: 0.7886 MB / 452.4 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.273, allocations: 16.5 kB / 452.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.2731, allocations: 24 kB / 452.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005412/0.2736, allocations: 337.5 kB / 452.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2736, allocations: 3.938 kB / 452.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.2736, allocations: 8 kB / 452.8 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.2737, allocations: 12 kB / 452.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.2741, allocations: 238 kB / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2759, allocations: 1.097 MB / 454.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.2763, allocations: 174.6 kB / 454.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.2766, allocations: 191.9 kB / 454.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006889/0.2835, allocations: 3.084 MB / 457.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.2835, allocations: 42.5 kB / 457.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.983e-06/0.2836, allocations: 0 / 457.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001615/0.2852, allocations: 0.5811 MB / 458.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.2852, allocations: 81.11 kB / 458.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009767/0.2862, allocations: 0.8103 MB / 459.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.2862, allocations: 25.7 kB / 459.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004517/0.2867, allocations: 445 kB / 459.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.2868, allocations: 75.28 kB / 459.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.674e-05/0.2868, allocations: 57.94 kB / 459.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.287, allocations: 321.9 kB / 460 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.2872, allocations: 64.2 kB / 460.1 MB, free: 9.582 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.2874, allocations: 175.5 kB / 460.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003772/0.2878, allocations: 244.1 kB / 460.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2878, allocations: 0 / 460.5 MB, free: 9.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006619/0.2884, allocations: 405.5 kB / 460.9 MB, free: 8.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.2884, allocations: 8 kB / 460.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/0.2885, allocations: 12 kB / 460.9 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003952/0.2889, allocations: 141 kB / 461 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.2891, allocations: 35.95 kB / 461.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007807/0.2898, allocations: 0.7085 MB / 461.8 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.2901, allocations: 27.84 kB / 461.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.2901, allocations: 16 kB / 461.8 MB, free: 7.727 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.0002812/0.2904, allocations: 197.7 kB / 462 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.2905, allocations: 115.3 kB / 462.1 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008006/0.2913, allocations: 399.4 kB / 462.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.2913, allocations: 4 kB / 462.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.2913, allocations: 0 / 462.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2914, allocations: 0 / 462.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006109/0.292, allocations: 474.6 kB / 463 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.2e-05/0.292, allocations: 16 kB / 463 MB, free: 6.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.2921, allocations: 15.98 kB / 463 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003069/0.2924, allocations: 151.2 kB / 463.2 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.2924, allocations: 8 kB / 463.2 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006755/0.2931, allocations: 0.7007 MB / 463.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2931, allocations: 0 / 463.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.2937, allocations: 451.2 kB / 464.3 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002096/0.2939, allocations: 103.2 kB / 464.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.294, allocations: 4 kB / 464.4 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.2942, allocations: 4 kB / 464.4 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.314e-05/0.2943, allocations: 19.97 kB / 464.4 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.2943, allocations: 8 kB / 464.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006594/0.295, allocations: 0.5422 MB / 465 MB, free: 4.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.295, allocations: 8.062 kB / 465 MB, free: 4.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005729/0.2955, allocations: 191.7 kB / 465.2 MB, free: 4.246 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.001341/0.2969, allocations: 1.177 MB / 466.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.2974, allocations: 264.1 kB / 466.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2974, allocations: 4 kB / 466.6 MB, free: 2.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.2977, allocations: 174 kB / 466.8 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007479/0.2985, allocations: 172.1 kB / 466.9 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007081/0.3056, allocations: 5.317 MB / 472.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.3059, allocations: 345.4 kB / 472.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003094/0.3062, allocations: 106.7 kB / 472.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.3066, allocations: 315.3 kB / 473 MB, free: 12.13 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3066, allocations: 7.938 kB / 473 MB, free: 12.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05347/0.3601, allocations: 18.96 MB / 492 MB, free: 9.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.55, allocations: 6.719 kB / 492 MB, free: 9.426 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J2.D.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable RC.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable RC.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable J1.D.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J1.D.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.221814235992497]