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.0008366/0.0008366, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001057/0.001057, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9189/0.9189, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.903e-06/1.903e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.263e-05, allocations: 6.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003744/0.003766, allocations: 4.669 MB / 329.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006863/0.01063, allocations: 7.878 MB / 337.1 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005908/0.01122, allocations: 59.38 kB / 337.2 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007506/0.01197, allocations: 361.5 kB / 337.5 MB, free: 2.934 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001912/0.01388, allocations: 0.8726 MB / 338.4 MB, free: 2.055 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.01513, allocations: 0.6024 MB / 339 MB, free: 1.449 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.01708, allocations: 1.786 MB / 340.8 MB, free: 15.65 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.01731, allocations: 103.3 kB / 340.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004474/0.01775, allocations: 458.8 kB / 341.3 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.01814, allocations: 231.2 kB / 341.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.01819, allocations: 28 kB / 341.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009996/0.01919, allocations: 0.5696 MB / 342.2 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.01926, allocations: 103.3 kB / 342.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.01944, allocations: 235.3 kB / 342.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.02067, allocations: 1.242 MB / 343.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.02068, allocations: 0 / 343.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.02068, allocations: 0 / 343.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.02069, allocations: 8 kB / 343.7 MB, free: 12.68 MB / 314.7 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.001272/0.02196, allocations: 1.23 MB / 345 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.02201, allocations: 8.031 kB / 345 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.742e-05/0.02207, allocations: 66.72 kB / 345 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.02228, allocations: 132.2 kB / 345.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008229/0.0231, allocations: 0.7766 MB / 345.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.02312, allocations: 16.88 kB / 346 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.02316, allocations: 31.94 kB / 346 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.02355, allocations: 337.5 kB / 346.3 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.02356, allocations: 0 / 346.3 MB, free: 9.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.02358, allocations: 8 kB / 346.3 MB, free: 9.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.0236, allocations: 12 kB / 346.3 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002745/0.02387, allocations: 234 kB / 346.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.02508, allocations: 1.083 MB / 347.6 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.02535, allocations: 181 kB / 347.8 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.02555, allocations: 201.5 kB / 348 MB, free: 8.184 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004/0.02955, allocations: 3.111 MB / 351.1 MB, free: 5.047 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.02957, allocations: 38.55 kB / 351.2 MB, free: 5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.335e-06/0.02958, allocations: 0 / 351.2 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009677/0.03054, allocations: 0.5678 MB / 351.7 MB, free: 4.422 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.03059, allocations: 81.11 kB / 351.8 MB, free: 4.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.03118, allocations: 0.8025 MB / 352.6 MB, free: 3.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.0312, allocations: 29.7 kB / 352.6 MB, free: 3.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002317/0.03143, allocations: 449 kB / 353.1 MB, free: 3.027 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.124e-05/0.03147, allocations: 83.31 kB / 353.2 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.03153, allocations: 53.94 kB / 353.2 MB, free: 2.887 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.03161, allocations: 318 kB / 353.5 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.032e-05/0.0317, allocations: 68.2 kB / 353.6 MB, free: 2.504 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.03183, allocations: 171.5 kB / 353.8 MB, free: 2.297 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.03206, allocations: 236.4 kB / 354 MB, free: 2.039 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.03206, allocations: 3.938 kB / 354 MB, free: 2.035 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003916/0.03245, allocations: 401.9 kB / 354.4 MB, free: 1.633 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.03247, allocations: 12 kB / 354.4 MB, free: 1.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/0.0325, allocations: 16 kB / 354.4 MB, free: 1.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.03278, allocations: 140.7 kB / 354.6 MB, free: 1.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.03288, allocations: 35.91 kB / 354.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004808/0.03336, allocations: 0.7113 MB / 355.3 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.03352, allocations: 31.72 kB / 355.3 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/0.03355, allocations: 15.98 kB / 355.4 MB, free: 0.6484 MB / 314.7 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.0001868/0.03373, allocations: 193.8 kB / 355.5 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.03406, allocations: 107.3 kB / 355.6 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005083/0.03457, allocations: 399.5 kB / 356 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.03457, allocations: 4 kB / 356 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.03458, allocations: 3.938 kB / 356 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.03458, allocations: 3.984 kB / 356 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003814/0.03496, allocations: 466.7 kB / 356.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.03498, allocations: 12 kB / 356.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.367e-05/0.03504, allocations: 15.98 kB / 356.5 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.03523, allocations: 136.8 kB / 356.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.03525, allocations: 8 kB / 356.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003949/0.03564, allocations: 0.7122 MB / 357.4 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.03565, allocations: 3.984 kB / 357.4 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003569/0.03601, allocations: 462.5 kB / 357.8 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.03612, allocations: 95.39 kB / 357.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.03616, allocations: 4 kB / 357.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.03626, allocations: 8 kB / 357.9 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.03631, allocations: 15.97 kB / 358 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.03632, allocations: 8 kB / 358 MB, free: 13.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004059/0.03673, allocations: 0.5423 MB / 358.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03673, allocations: 3.938 kB / 358.5 MB, free: 13.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004273/0.03715, allocations: 195.6 kB / 358.7 MB, free: 13.18 MB / 330.7 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.0008926/0.03805, allocations: 1.193 MB / 359.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.03843, allocations: 270.4 kB / 360.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.03843, allocations: 3.938 kB / 360.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.03858, allocations: 177.8 kB / 360.3 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000483/0.03907, allocations: 152.8 kB / 360.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005128/0.0442, allocations: 5.315 MB / 365.8 MB, free: 5.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.04442, allocations: 349.4 kB / 366.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.04465, allocations: 110.7 kB / 366.3 MB, free: 5.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.0449, allocations: 312.4 kB / 366.6 MB, free: 5.055 MB / 330.7 MB Notification: Performance of SimCode: time 1.894e-06/0.0449, allocations: 0 / 366.6 MB, free: 5.055 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.07601, allocations: 19 MB / 385.6 MB, free: 2.301 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.409/8.485, allocations: 2.922 kB / 385.6 MB, free: 2.301 MB / 346.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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: 10.271931247785687]