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.0008221/0.0008221, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008985/0.0008985, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.883/0.883, allocations: 173.4 MB / 200.4 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] 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 1.433e-06/1.433e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.383e-05/1.526e-05, allocations: 6.219 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003661/0.003676, allocations: 4.635 MB / 323.1 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00644/0.01012, allocations: 7.823 MB / 330.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002962/0.01041, allocations: 59.38 kB / 330.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007172/0.01113, allocations: 361.5 kB / 331.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001504/0.01263, allocations: 0.8765 MB / 332.2 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008902/0.01352, allocations: 0.6024 MB / 332.8 MB, free: 7.941 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.01494, allocations: 1.74 MB / 334.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.01511, allocations: 107.3 kB / 334.6 MB, free: 6.074 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003169/0.01542, allocations: 446.8 kB / 335.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.01565, allocations: 235.1 kB / 335.3 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.01569, allocations: 28 kB / 335.3 MB, free: 5.379 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007425/0.01643, allocations: 0.5657 MB / 335.9 MB, free: 4.812 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.955e-05/0.01649, allocations: 99.31 kB / 336 MB, free: 4.715 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.01666, allocations: 235.3 kB / 336.2 MB, free: 4.484 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009393/0.01759, allocations: 1.234 MB / 337.4 MB, free: 3.246 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.0176, allocations: 8 kB / 337.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0176, allocations: 0 / 337.4 MB, free: 3.238 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.01761, allocations: 0 / 337.4 MB, free: 3.238 MB / 298.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.001337/0.01894, allocations: 1.226 MB / 338.7 MB, free: 1.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.01898, allocations: 8.922 kB / 338.7 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.073e-05/0.01903, allocations: 62.67 kB / 338.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.747e-05/0.01912, allocations: 116.2 kB / 338.9 MB, free: 1.785 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007976/0.01992, allocations: 0.7844 MB / 339.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.787e-05/0.01994, allocations: 24.88 kB / 339.7 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.01997, allocations: 27.94 kB / 339.7 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.02034, allocations: 333.5 kB / 340 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.02035, allocations: 0 / 340 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.02037, allocations: 12 kB / 340 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.02038, allocations: 15.94 kB / 340 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.02065, allocations: 230 kB / 340.3 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.02175, allocations: 1.083 MB / 341.4 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.02201, allocations: 182.5 kB / 341.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.02221, allocations: 201.2 kB / 341.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003606/0.02582, allocations: 3.08 MB / 344.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.017e-05/0.02584, allocations: 34.5 kB / 344.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.282e-06/0.02584, allocations: 4 kB / 344.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001167/0.02701, allocations: 0.5759 MB / 345.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.02704, allocations: 81.09 kB / 345.5 MB, free: 10.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.02759, allocations: 0.8026 MB / 346.3 MB, free: 10.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.02761, allocations: 29.7 kB / 346.3 MB, free: 10.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.02785, allocations: 445 kB / 346.8 MB, free: 9.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.246e-05/0.02789, allocations: 87.25 kB / 346.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.809e-05/0.02795, allocations: 57.94 kB / 346.9 MB, free: 9.477 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.804e-05/0.02802, allocations: 314 kB / 347.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.768e-05/0.0281, allocations: 76.12 kB / 347.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.02822, allocations: 171.6 kB / 347.5 MB, free: 8.883 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.02844, allocations: 222.9 kB / 347.7 MB, free: 8.637 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.02844, allocations: 3.938 kB / 347.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003725/0.02881, allocations: 412.7 kB / 348.1 MB, free: 8.223 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.02883, allocations: 8 kB / 348.1 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.02885, allocations: 15.94 kB / 348.1 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/0.02909, allocations: 136.8 kB / 348.2 MB, free: 8.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.76e-05/0.02918, allocations: 35.97 kB / 348.3 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004221/0.0296, allocations: 0.7151 MB / 349 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.02972, allocations: 27.77 kB / 349 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.02975, allocations: 16 kB / 349 MB, free: 7.246 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.0001685/0.02992, allocations: 201.7 kB / 349.2 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.794e-05/0.02999, allocations: 107.3 kB / 349.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004488/0.03043, allocations: 395.6 kB / 349.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.03044, allocations: 0 / 349.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.03044, allocations: 7.938 kB / 349.7 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.03045, allocations: 3.984 kB / 349.7 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003654/0.03081, allocations: 470.7 kB / 350.2 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.03082, allocations: 8 kB / 350.2 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-05/0.03088, allocations: 23.97 kB / 350.2 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001629/0.03104, allocations: 136.7 kB / 350.4 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.03106, allocations: 8 kB / 350.4 MB, free: 5.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003577/0.03142, allocations: 0.7006 MB / 351.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.03142, allocations: 0 / 351.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.03176, allocations: 464.2 kB / 351.5 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.708e-05/0.03186, allocations: 99.33 kB / 351.6 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.0319, allocations: 4 kB / 351.6 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.03201, allocations: 4 kB / 351.6 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.03204, allocations: 19.97 kB / 351.6 MB, free: 4.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.03206, allocations: 8 kB / 351.7 MB, free: 4.516 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006552/0.03271, allocations: 0.5423 MB / 352.2 MB, free: 3.965 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03271, allocations: 0 / 352.2 MB, free: 3.965 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.03305, allocations: 195.6 kB / 352.4 MB, free: 3.773 MB / 314.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.0008529/0.0339, allocations: 1.195 MB / 353.6 MB, free: 2.551 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003794/0.03428, allocations: 267 kB / 353.8 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.03428, allocations: 0 / 353.8 MB, free: 2.277 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.03444, allocations: 171.3 kB / 354 MB, free: 2.098 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.03489, allocations: 159.2 kB / 354.2 MB, free: 1.945 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004675/0.03957, allocations: 5.315 MB / 359.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.03976, allocations: 353.3 kB / 359.8 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.03994, allocations: 110.7 kB / 359.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.04015, allocations: 312.3 kB / 360.2 MB, free: 11.65 MB / 330.7 MB Notification: Performance of SimCode: time 6.31e-07/0.04015, allocations: 0 / 360.2 MB, free: 11.65 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/0.07327, allocations: 18.95 MB / 379.2 MB, free: 8.949 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.376/8.449, allocations: 8.062 kB / 379.2 MB, free: 8.941 MB / 346.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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: 10.176757203415036]