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.001387/0.001387, allocations: 112.4 kB / 20.43 MB, free: 1.449 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.001425/0.001425, allocations: 189.6 kB / 23.72 MB, free: 4.684 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.435/1.435, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.00154/0.00154, allocations: 47.92 kB / 370.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2563, allocations: 52.19 MB / 422.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006499/0.2628, allocations: 5.315 MB / 427.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.2738, allocations: 9.108 MB / 437 MB, free: 176 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004979/0.2743, allocations: 59.38 kB / 437.1 MB, free: 116 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009384/0.2752, allocations: 409.4 kB / 437.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00206/0.2773, allocations: 0.8342 MB / 438.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.2787, allocations: 0.5909 MB / 438.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002449/0.2811, allocations: 1.709 MB / 440.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.2814, allocations: 111.4 kB / 440.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003977/0.2818, allocations: 318.5 kB / 441.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004341/0.2822, allocations: 322 kB / 441.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.2823, allocations: 28 kB / 441.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001358/0.2836, allocations: 0.6555 MB / 442.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-05/0.2837, allocations: 99.33 kB / 442.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003751/0.2841, allocations: 401.5 kB / 442.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00155/0.2856, allocations: 1.214 MB / 443.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2856, allocations: 0 / 443.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2856, allocations: 0 / 443.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.2857, allocations: 0 / 443.8 MB, free: 9.414 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.00201/0.2877, allocations: 1.23 MB / 445 MB, free: 8.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2877, allocations: 16.03 kB / 445 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.928e-05/0.2878, allocations: 62.72 kB / 445.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.2879, allocations: 116.2 kB / 445.2 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.2892, allocations: 0.7886 MB / 446 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.2892, allocations: 16.5 kB / 446 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.2893, allocations: 24 kB / 446 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.2898, allocations: 307.8 kB / 446.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.2898, allocations: 4 kB / 446.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.012e-05/0.2899, allocations: 12 kB / 446.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.2899, allocations: 7.984 kB / 446.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.2903, allocations: 242 kB / 446.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2922, allocations: 1.144 MB / 447.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.2925, allocations: 182.5 kB / 447.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003272/0.2929, allocations: 197.4 kB / 448.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006774/0.2996, allocations: 3.103 MB / 451.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.2997, allocations: 38.5 kB / 451.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.804e-06/0.2997, allocations: 0 / 451.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001606/0.3013, allocations: 0.5793 MB / 451.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.3014, allocations: 81.11 kB / 451.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009333/0.3023, allocations: 0.8064 MB / 452.7 MB, free: 220 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/0.3023, allocations: 25.7 kB / 452.7 MB, free: 188 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003957/0.3027, allocations: 445.1 kB / 453.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.738e-05/0.3028, allocations: 91.11 kB / 453.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.367e-05/0.3029, allocations: 57.89 kB / 453.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.303, allocations: 321.9 kB / 453.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.3032, allocations: 72.14 kB / 453.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.3034, allocations: 139 kB / 453.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.3038, allocations: 232.5 kB / 454 MB, free: 14.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3038, allocations: 0 / 454 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006313/0.3044, allocations: 407.4 kB / 454.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3044, allocations: 7.938 kB / 454.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.149e-05/0.3044, allocations: 20 kB / 454.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003721/0.3048, allocations: 152.3 kB / 454.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.305, allocations: 31.97 kB / 454.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006891/0.3057, allocations: 0.7045 MB / 455.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/0.3059, allocations: 27.86 kB / 455.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.3059, allocations: 20 kB / 455.4 MB, free: 13.39 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.0002475/0.3062, allocations: 197.7 kB / 455.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.3063, allocations: 107.3 kB / 455.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008011/0.3071, allocations: 395.6 kB / 456.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3071, allocations: 0 / 456.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3071, allocations: 0 / 456.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3071, allocations: 3.984 kB / 456.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006399/0.3078, allocations: 498.5 kB / 456.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/0.3078, allocations: 12 kB / 456.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.3079, allocations: 27.91 kB / 456.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002921/0.3082, allocations: 140.6 kB / 456.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.3082, allocations: 4 kB / 456.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006453/0.3089, allocations: 0.6968 MB / 457.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3089, allocations: 0 / 457.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.3095, allocations: 459 kB / 457.9 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.3097, allocations: 95.33 kB / 458 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/0.3097, allocations: 0 / 458 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.31, allocations: 11.98 kB / 458 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.31, allocations: 19.98 kB / 458 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.31, allocations: 12 kB / 458 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006863/0.3107, allocations: 0.5383 MB / 458.6 MB, free: 10.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3107, allocations: 4 kB / 458.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.3113, allocations: 195.6 kB / 458.8 MB, free: 9.902 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.001344/0.3126, allocations: 1.181 MB / 459.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005678/0.3132, allocations: 263.2 kB / 460.2 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3132, allocations: 0 / 460.2 MB, free: 8.422 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.3135, allocations: 179.8 kB / 460.4 MB, free: 8.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007224/0.3142, allocations: 154.7 kB / 460.5 MB, free: 8.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006861/0.3211, allocations: 5.336 MB / 465.9 MB, free: 2.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.3216, allocations: 0.9413 MB / 466.8 MB, free: 1.594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002699/0.3219, allocations: 106.7 kB / 466.9 MB, free: 1.484 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003342/0.3222, allocations: 315.3 kB / 467.2 MB, free: 1.176 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3222, allocations: 0 / 467.2 MB, free: 1.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05168/0.3739, allocations: 18.63 MB / 485.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/14.71, allocations: 22.42 kB / 485.9 MB, free: 14.74 MB / 398.1 MB " [Timeout remaining time 645] (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: 17.127295112000866]