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.001774/0.001774, allocations: 113.2 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.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.002406/0.002406, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001663/0.001663, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3077, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.007355/0.3151, allocations: 5.324 MB / 436.5 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0133/0.3284, allocations: 9.166 MB / 445.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.3294, allocations: 55.38 kB / 445.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001493/0.3309, allocations: 405.4 kB / 446.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003324/0.3343, allocations: 0.838 MB / 446.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.3367, allocations: 0.6026 MB / 447.5 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003619/0.3403, allocations: 1.725 MB / 449.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003422/0.3406, allocations: 107.3 kB / 449.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007091/0.3413, allocations: 326.5 kB / 449.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.3419, allocations: 322 kB / 450 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.144e-05/0.342, allocations: 28 kB / 450 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.3443, allocations: 0.6672 MB / 450.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.3445, allocations: 103.3 kB / 450.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007295/0.3452, allocations: 405.5 kB / 451.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003673/0.3489, allocations: 1.218 MB / 452.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.3489, allocations: 0 / 452.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3489, allocations: 0 / 452.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.321e-05/0.3489, allocations: 0 / 452.4 MB, free: 1.48 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.003033/0.352, allocations: 1.24 MB / 453.6 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.352, allocations: 20.02 kB / 453.6 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.485e-05/0.3521, allocations: 58.73 kB / 453.7 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004133/0.3525, allocations: 132.2 kB / 453.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.3541, allocations: 0.7847 MB / 454.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.3541, allocations: 16.5 kB / 454.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.3542, allocations: 31.89 kB / 454.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.3548, allocations: 307.8 kB / 455 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3549, allocations: 0 / 455 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.3549, allocations: 15.98 kB / 455 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.3549, allocations: 8 kB / 455 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.3554, allocations: 234 kB / 455.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.3577, allocations: 1.148 MB / 456.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.3581, allocations: 181.6 kB / 456.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.3584, allocations: 189.4 kB / 456.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007573/0.366, allocations: 3.123 MB / 459.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.3661, allocations: 34.56 kB / 459.9 MB, free: 9.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.266e-06/0.3661, allocations: 0 / 459.9 MB, free: 9.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001831/0.3679, allocations: 0.585 MB / 460.5 MB, free: 9.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/0.368, allocations: 77.11 kB / 460.5 MB, free: 9.074 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.3691, allocations: 0.8026 MB / 461.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.3692, allocations: 25.7 kB / 461.4 MB, free: 8.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004465/0.3696, allocations: 449 kB / 461.8 MB, free: 7.781 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.703e-05/0.3697, allocations: 79.28 kB / 461.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.3698, allocations: 61.88 kB / 461.9 MB, free: 7.637 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.37, allocations: 321.9 kB / 462.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.3702, allocations: 64.2 kB / 462.3 MB, free: 7.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.3704, allocations: 145.9 kB / 462.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004066/0.3708, allocations: 244 kB / 462.7 MB, free: 6.812 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.299e-06/0.3708, allocations: 0 / 462.7 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007979/0.3716, allocations: 405.4 kB / 463.1 MB, free: 6.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.3717, allocations: 8.281 kB / 463.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-05/0.3717, allocations: 16 kB / 463.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/0.3721, allocations: 135.5 kB / 463.3 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.3723, allocations: 35.91 kB / 463.3 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000809/0.3731, allocations: 0.7085 MB / 464 MB, free: 5.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.3735, allocations: 27.8 kB / 464 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.3735, allocations: 16 kB / 464 MB, free: 5.438 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.0003407/0.3738, allocations: 200.3 kB / 464.2 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.374, allocations: 107.3 kB / 464.3 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009082/0.3749, allocations: 411.4 kB / 464.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.3749, allocations: 0 / 464.7 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3749, allocations: 4 kB / 464.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.375, allocations: 7.922 kB / 464.8 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008133/0.3758, allocations: 490.6 kB / 465.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/0.3758, allocations: 16 kB / 465.3 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.3759, allocations: 19.98 kB / 465.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003245/0.3763, allocations: 144.6 kB / 465.4 MB, free: 4.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.3763, allocations: 4 kB / 465.4 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000755/0.377, allocations: 0.7038 MB / 466.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.377, allocations: 0 / 466.1 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008005/0.3778, allocations: 447.2 kB / 466.6 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/0.3781, allocations: 99.31 kB / 466.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.983e-05/0.3782, allocations: 0 / 466.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002299/0.3785, allocations: 12.06 kB / 466.7 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-05/0.3785, allocations: 19.92 kB / 466.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.3786, allocations: 12 kB / 466.7 MB, free: 2.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008378/0.3794, allocations: 0.5422 MB / 467.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3794, allocations: 0 / 467.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007386/0.3801, allocations: 199.6 kB / 467.4 MB, free: 1.934 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.001528/0.3817, allocations: 1.173 MB / 468.6 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.3823, allocations: 267.4 kB / 468.9 MB, free: 468 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3823, allocations: 4.5 kB / 468.9 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003174/0.3827, allocations: 177.7 kB / 469 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008331/0.3835, allocations: 168.2 kB / 469.2 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008184/0.3917, allocations: 5.321 MB / 474.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006273/0.3923, allocations: 0.9374 MB / 475.5 MB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003537/0.3927, allocations: 114.7 kB / 475.6 MB, free: 9.512 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.393, allocations: 315.3 kB / 475.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of SimCode: time 1.223e-06/0.393, allocations: 0 / 475.9 MB, free: 9.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05999/0.453, allocations: 18.69 MB / 494.6 MB, free: 6.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.04, allocations: 6.812 kB / 494.6 MB, free: 6.719 MB / 398.1 MB " [Timeout remaining time 645] (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: 17.638807663999614]