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.001262/0.001262, allocations: 114.5 kB / 17.78 MB, free: 5.289 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.001297/0.001297, allocations: 190.9 kB / 20.73 MB, free: 2.352 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.519/1.519, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.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.00147/0.00147, allocations: 43.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006311/0.1123, allocations: 5.301 MB / 423.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.1233, allocations: 9.091 MB / 432.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007298/0.124, allocations: 55.38 kB / 432.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.125, allocations: 405.4 kB / 432.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.1276, allocations: 0.8419 MB / 433.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001871/0.1295, allocations: 0.6063 MB / 434.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002567/0.1321, allocations: 1.685 MB / 435.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.1323, allocations: 103.1 kB / 435.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004305/0.1327, allocations: 322.5 kB / 436.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003958/0.1331, allocations: 322 kB / 436.5 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.392e-05/0.1332, allocations: 28 kB / 436.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.1346, allocations: 0.6555 MB / 437.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.74e-05/0.1347, allocations: 99.33 kB / 437.3 MB, free: 9.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.1351, allocations: 405.5 kB / 437.7 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.1368, allocations: 1.21 MB / 438.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1368, allocations: 0 / 438.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1368, allocations: 0 / 438.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.1368, allocations: 0 / 438.9 MB, free: 7.43 MB / 366.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.002037/0.1389, allocations: 1.309 MB / 440.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.1389, allocations: 12.03 kB / 440.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.138e-05/0.139, allocations: 58.73 kB / 440.2 MB, free: 5.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.1391, allocations: 120.2 kB / 440.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.1403, allocations: 0.8645 MB / 441.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.1404, allocations: 20.56 kB / 441.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.1404, allocations: 24 kB / 441.3 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.141, allocations: 311.6 kB / 441.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.141, allocations: 0 / 441.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.141, allocations: 15.98 kB / 441.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.141, allocations: 7.984 kB / 441.6 MB, free: 4.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.1415, allocations: 234.1 kB / 441.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.1433, allocations: 1.183 MB / 443 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.1437, allocations: 178.7 kB / 443.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003196/0.144, allocations: 190 kB / 443.4 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.232/0.376, allocations: 8.562 MB / 451.9 MB, free: 25.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.3761, allocations: 39.03 kB / 452 MB, free: 25.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.755e-06/0.3761, allocations: 4.219 kB / 452 MB, free: 25.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001692/0.3778, allocations: 0.6533 MB / 452.6 MB, free: 25.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.3778, allocations: 81.7 kB / 452.7 MB, free: 25.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00096/0.3788, allocations: 0.8015 MB / 453.5 MB, free: 25.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.3788, allocations: 29.08 kB / 453.5 MB, free: 25.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.3791, allocations: 439.9 kB / 454 MB, free: 25.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.564e-05/0.3792, allocations: 86.08 kB / 454.1 MB, free: 25.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.3792, allocations: 61.2 kB / 454.1 MB, free: 25.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.192e-05/0.3793, allocations: 317.9 kB / 454.4 MB, free: 24.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.3795, allocations: 67.72 kB / 454.5 MB, free: 24.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.3796, allocations: 147 kB / 454.6 MB, free: 24.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.3799, allocations: 228.7 kB / 454.9 MB, free: 24.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3799, allocations: 3.938 kB / 454.9 MB, free: 24.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006524/0.3806, allocations: 406.1 kB / 455.3 MB, free: 24.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3806, allocations: 6.047 kB / 455.3 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/0.3807, allocations: 18.38 kB / 455.3 MB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/0.3811, allocations: 142.6 kB / 455.4 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.3812, allocations: 39.08 kB / 455.5 MB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006071/0.3819, allocations: 0.7113 MB / 456.2 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.3821, allocations: 34.47 kB / 456.2 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.3822, allocations: 14.31 kB / 456.2 MB, free: 23.91 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.0002329/0.3824, allocations: 199.5 kB / 456.4 MB, free: 23.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3825, allocations: 108.7 kB / 456.5 MB, free: 23.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008053/0.3833, allocations: 393.1 kB / 456.9 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3833, allocations: 6.312 kB / 456.9 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3833, allocations: 0 / 456.9 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3833, allocations: 1.359 kB / 456.9 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006405/0.384, allocations: 0.5072 MB / 457.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.56e-05/0.384, allocations: 17.88 kB / 457.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.3841, allocations: 16.7 kB / 457.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003036/0.3844, allocations: 140.3 kB / 457.6 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.3845, allocations: 8.562 kB / 457.6 MB, free: 23.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005911/0.385, allocations: 0.702 MB / 458.3 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.385, allocations: 0 / 458.3 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006958/0.3857, allocations: 462.4 kB / 458.7 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001756/0.3859, allocations: 179.2 kB / 458.9 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.386, allocations: 1.562 kB / 458.9 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.3862, allocations: 7.922 kB / 458.9 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.3863, allocations: 12.92 kB / 458.9 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.3863, allocations: 15.33 kB / 459 MB, free: 22.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007428/0.387, allocations: 0.5409 MB / 459.5 MB, free: 22.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.387, allocations: 0 / 459.5 MB, free: 22.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006309/0.3877, allocations: 198.8 kB / 459.7 MB, free: 22.18 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.00121/0.3889, allocations: 1.191 MB / 460.9 MB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006247/0.3895, allocations: 266.6 kB / 461.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3895, allocations: 0.5625 kB / 461.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.3898, allocations: 177.9 kB / 461.3 MB, free: 21.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.3905, allocations: 152.6 kB / 461.5 MB, free: 21.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006674/0.3972, allocations: 5.334 MB / 466.8 MB, free: 18.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.3976, allocations: 0.939 MB / 467.7 MB, free: 17.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003661/0.398, allocations: 111 kB / 467.9 MB, free: 17.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002776/0.3983, allocations: 319.1 kB / 468.2 MB, free: 17.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3983, allocations: 3.938 kB / 468.2 MB, free: 17.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04826/0.4465, allocations: 18.41 MB / 486.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/13.99, allocations: 6.281 kB / 486.6 MB, free: 7.879 MB / 366.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.571167261805385]