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.001308/0.001308, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001367/0.001367, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.486/1.486, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.002114/0.002114, allocations: 47.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1078, allocations: 53.32 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2113/0.3191, allocations: 5.313 MB / 431.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008852/0.328, allocations: 9.15 MB / 440.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008213/0.3288, allocations: 57.56 kB / 440.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.33, allocations: 401.5 kB / 441.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003312/0.3333, allocations: 0.8424 MB / 442.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002366/0.3357, allocations: 0.5961 MB / 442.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003111/0.3388, allocations: 1.727 MB / 444.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.339, allocations: 97.8 kB / 444.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000596/0.3396, allocations: 326.1 kB / 444.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000441/0.3401, allocations: 317.5 kB / 445.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.82e-05/0.3402, allocations: 29.41 kB / 445.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.3424, allocations: 0.6692 MB / 445.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.3426, allocations: 101.1 kB / 445.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005257/0.3431, allocations: 404.6 kB / 446.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002504/0.3456, allocations: 1.22 MB / 447.5 MB, free: 380 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3456, allocations: 1.062 kB / 447.5 MB, free: 380 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3456, allocations: 0 / 447.5 MB, free: 380 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.3456, allocations: 0 / 447.5 MB, free: 380 kB / 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.00235/0.348, allocations: 1.321 MB / 448.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.348, allocations: 9.156 kB / 448.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.306e-05/0.3481, allocations: 65.81 kB / 448.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003769/0.3485, allocations: 137.1 kB / 449 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.3499, allocations: 0.8526 MB / 449.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3499, allocations: 17.94 kB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.299e-05/0.35, allocations: 31.73 kB / 449.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/0.3505, allocations: 311.5 kB / 450.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3505, allocations: 0 / 450.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.227e-05/0.3506, allocations: 10.28 kB / 450.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3506, allocations: 7.656 kB / 450.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.351, allocations: 234.7 kB / 450.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.353, allocations: 1.186 MB / 451.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003875/0.3534, allocations: 175.2 kB / 451.9 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003305/0.3537, allocations: 199 kB / 452 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.3639, allocations: 8.879 MB / 460.9 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.3639, allocations: 35.94 kB / 461 MB, free: 5.367 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.3639, allocations: 1.375 kB / 461 MB, free: 5.367 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001699/0.3656, allocations: 0.6643 MB / 461.6 MB, free: 5.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.3656, allocations: 78.52 kB / 461.7 MB, free: 4.949 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.3667, allocations: 0.7941 MB / 462.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.3668, allocations: 35.45 kB / 462.5 MB, free: 4.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003846/0.3671, allocations: 442.3 kB / 463 MB, free: 4.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.082e-05/0.3672, allocations: 86 kB / 463 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.3673, allocations: 58.95 kB / 463.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3675, allocations: 320.1 kB / 463.4 MB, free: 3.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.3676, allocations: 70.08 kB / 463.5 MB, free: 3.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002141/0.3678, allocations: 151.5 kB / 463.6 MB, free: 3.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003779/0.3682, allocations: 231.8 kB / 463.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3682, allocations: 1.094 kB / 463.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008227/0.369, allocations: 405.9 kB / 464.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.3691, allocations: 6.031 kB / 464.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.393e-05/0.3691, allocations: 14.28 kB / 464.3 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004132/0.3695, allocations: 139.5 kB / 464.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.3697, allocations: 41.09 kB / 464.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007346/0.3705, allocations: 0.701 MB / 465.2 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004371/0.3709, allocations: 33.05 kB / 465.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.946e-05/0.3709, allocations: 11.97 kB / 465.2 MB, free: 2.547 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.0002829/0.3712, allocations: 198.9 kB / 465.4 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3714, allocations: 111.1 kB / 465.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008098/0.3722, allocations: 402.2 kB / 465.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.3722, allocations: 3.094 kB / 465.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3722, allocations: 0 / 465.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3722, allocations: 9.906 kB / 465.9 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007493/0.3729, allocations: 0.5048 MB / 466.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.447e-05/0.373, allocations: 12.59 kB / 466.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.3731, allocations: 23.31 kB / 466.4 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002989/0.3734, allocations: 134.4 kB / 466.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.3734, allocations: 11.56 kB / 466.6 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006609/0.3741, allocations: 0.701 MB / 467.3 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3741, allocations: 8.094 kB / 467.3 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/0.3747, allocations: 448.8 kB / 467.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.375, allocations: 175.8 kB / 467.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.3751, allocations: 5.219 kB / 467.9 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.3753, allocations: 7.391 kB / 467.9 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.3754, allocations: 16.89 kB / 467.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-05/0.3754, allocations: 7.594 kB / 467.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007666/0.3762, allocations: 0.545 MB / 468.5 MB, free: 204 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3762, allocations: 0 / 468.5 MB, free: 204 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007499/0.3769, allocations: 195.2 kB / 468.7 MB, free: 172 kB / 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.001571/0.3785, allocations: 1.181 MB / 469.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006614/0.3792, allocations: 287 kB / 470.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3792, allocations: 0 / 470.1 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.3795, allocations: 165.4 kB / 470.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009318/0.3804, allocations: 164.6 kB / 470.5 MB, free: 14.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/0.3885, allocations: 5.325 MB / 475.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005356/0.3891, allocations: 0.9357 MB / 476.7 MB, free: 10.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003875/0.3894, allocations: 108.6 kB / 476.8 MB, free: 10.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/0.3898, allocations: 310.4 kB / 477.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.482e-06/0.3898, allocations: 0 / 477.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0537/0.4435, allocations: 18.47 MB / 495.6 MB, free: 9.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/14.19, allocations: 7.109 kB / 495.6 MB, free: 9.559 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.77884607699525]