Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00163/0.00163, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002342/0.002342, allocations: 216.7 kB / 24.49 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.92 kB / 347.2 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2603, allocations: 49.16 MB / 396.3 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005397/0.2657, allocations: 5.161 MB / 401.5 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009678/0.2754, allocations: 8.722 MB / 410.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.2766, allocations: 57.44 kB / 410.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.278, allocations: 396.4 kB / 410.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003441/0.2814, allocations: 0.8264 MB / 411.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.2839, allocations: 0.5768 MB / 412.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003387/0.2873, allocations: 1.659 MB / 413.7 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.2876, allocations: 106 kB / 413.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006934/0.2883, allocations: 292.8 kB / 414.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005635/0.2889, allocations: 319.2 kB / 414.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.838e-05/0.289, allocations: 30.38 kB / 414.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.291, allocations: 0.5626 MB / 415 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2911, allocations: 103.6 kB / 415.1 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004894/0.2916, allocations: 410.7 kB / 415.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002174/0.2938, allocations: 1.21 MB / 416.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2938, allocations: 0 / 416.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2938, allocations: 0 / 416.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.2938, allocations: 0 / 416.7 MB, free: 11.48 MB / 334.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.002234/0.2961, allocations: 1.235 MB / 418 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.2961, allocations: 16.61 kB / 418 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.75e-05/0.2962, allocations: 60.59 kB / 418 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.2964, allocations: 125.1 kB / 418.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.2979, allocations: 0.7804 MB / 419 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.2979, allocations: 17.75 kB / 419 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.676e-05/0.2979, allocations: 27.28 kB / 419 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005559/0.2985, allocations: 309.5 kB / 419.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.2985, allocations: 1.031 kB / 419.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.2985, allocations: 10.31 kB / 419.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.2985, allocations: 9.891 kB / 419.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004264/0.299, allocations: 232.3 kB / 419.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.3011, allocations: 1.159 MB / 420.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.3015, allocations: 184.2 kB / 420.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003318/0.3018, allocations: 202.8 kB / 421.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007062/0.3089, allocations: 3.098 MB / 424.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.3089, allocations: 33.34 kB / 424.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.535e-06/0.3089, allocations: 0 / 424.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001798/0.3107, allocations: 0.5834 MB / 424.8 MB, free: 6.363 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.3108, allocations: 83.58 kB / 424.9 MB, free: 6.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.3118, allocations: 0.7983 MB / 425.7 MB, free: 5.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.3119, allocations: 29.7 kB / 425.7 MB, free: 5.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003899/0.3123, allocations: 445 kB / 426.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.735e-05/0.3123, allocations: 87.25 kB / 426.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.793e-05/0.3124, allocations: 61.94 kB / 426.3 MB, free: 5.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3126, allocations: 317.9 kB / 426.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.3128, allocations: 68.2 kB / 426.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.313, allocations: 141.9 kB / 426.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.3133, allocations: 224.4 kB / 427 MB, free: 4.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3133, allocations: 0 / 427 MB, free: 4.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007278/0.3141, allocations: 406.3 kB / 427.4 MB, free: 3.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.3141, allocations: 12.03 kB / 427.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-05/0.3141, allocations: 16 kB / 427.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003942/0.3145, allocations: 140.7 kB / 427.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.3147, allocations: 39.91 kB / 427.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007274/0.3154, allocations: 0.7123 MB / 428.3 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.3158, allocations: 23.78 kB / 428.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.3159, allocations: 23.92 kB / 428.4 MB, free: 2.848 MB / 334.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.0003108/0.3162, allocations: 197.7 kB / 428.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.3164, allocations: 111.3 kB / 428.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000858/0.3172, allocations: 403.5 kB / 429.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3172, allocations: 4 kB / 429.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3172, allocations: 0 / 429.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3172, allocations: 3.984 kB / 429.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007051/0.3179, allocations: 486.6 kB / 429.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/0.318, allocations: 19.94 kB / 429.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.3181, allocations: 15.98 kB / 429.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/0.3184, allocations: 132.8 kB / 429.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3184, allocations: 8 kB / 429.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006584/0.3191, allocations: 0.7084 MB / 430.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3191, allocations: 0 / 430.4 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.3197, allocations: 448.2 kB / 430.9 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002572/0.32, allocations: 99.27 kB / 431 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.989e-05/0.32, allocations: 8.062 kB / 431 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.3203, allocations: 4 kB / 431 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.438e-05/0.3203, allocations: 19.91 kB / 431 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.036e-05/0.3204, allocations: 12 kB / 431 MB, free: 96 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007206/0.3211, allocations: 0.5384 MB / 431.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3211, allocations: 0 / 431.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006375/0.3217, allocations: 199.7 kB / 431.7 MB, free: 15.35 MB / 350.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.00141/0.3231, allocations: 1.185 MB / 432.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000624/0.3238, allocations: 268 kB / 433.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3238, allocations: 4 kB / 433.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003024/0.3241, allocations: 168.5 kB / 433.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006968/0.3248, allocations: 132.2 kB / 433.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007491/0.3323, allocations: 5.326 MB / 438.8 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005735/0.3328, allocations: 0.9413 MB / 439.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003262/0.3332, allocations: 106.7 kB / 439.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.3335, allocations: 319.3 kB / 440.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3335, allocations: 0 / 440.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0569/0.3904, allocations: 18.65 MB / 458.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/14.83, allocations: 3.906 kB / 458.8 MB, free: 3.918 MB / 366.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J2.D.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable RC.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable RC.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! Error: Could not read variable J1.D.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv. Warning: Get data of variable J1.D.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.38303764900047]