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.001356/0.001356, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001511/0.001511, allocations: 212.2 kB / 23.73 MB, free: 4.16 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.461/1.461, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001717/0.001717, allocations: 44.06 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2219, allocations: 53.37 MB / 431.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006404/0.2283, allocations: 4.653 MB / 435.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.2394, allocations: 7.882 MB / 443.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000815/0.2403, allocations: 59.38 kB / 443.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.2413, allocations: 361.5 kB / 444 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002746/0.244, allocations: 0.842 MB / 444.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.2458, allocations: 0.6026 MB / 445.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002543/0.2483, allocations: 1.725 MB / 447.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.2486, allocations: 103.3 kB / 447.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004855/0.2491, allocations: 318.6 kB / 447.6 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004163/0.2495, allocations: 301.9 kB / 447.9 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.978e-05/0.2495, allocations: 35.98 kB / 447.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001467/0.251, allocations: 0.5775 MB / 448.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.2511, allocations: 99.33 kB / 448.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003143/0.2514, allocations: 306.1 kB / 448.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.2531, allocations: 1.229 MB / 450.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2531, allocations: 0 / 450.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2531, allocations: 0 / 450.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.377e-05/0.2531, allocations: 0 / 450.1 MB, free: 3.773 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.001896/0.255, allocations: 1.24 MB / 451.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.255, allocations: 12.03 kB / 451.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/0.2551, allocations: 62.72 kB / 451.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002887/0.2554, allocations: 128.2 kB / 451.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.2567, allocations: 0.7925 MB / 452.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.2568, allocations: 20.5 kB / 452.4 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.2568, allocations: 24 kB / 452.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005777/0.2574, allocations: 337.5 kB / 452.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.2574, allocations: 4 kB / 452.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.2574, allocations: 8 kB / 452.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.2575, allocations: 12 kB / 452.8 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.2579, allocations: 230 kB / 453 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.2597, allocations: 1.101 MB / 454.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003743/0.2601, allocations: 170.7 kB / 454.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003271/0.2604, allocations: 189.3 kB / 454.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00686/0.2673, allocations: 3.104 MB / 457.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.2673, allocations: 38.5 kB / 457.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.344e-06/0.2673, allocations: 0 / 457.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001598/0.2689, allocations: 0.5772 MB / 458.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.269, allocations: 81.11 kB / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009676/0.27, allocations: 0.8103 MB / 459 MB, free: 10.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.27, allocations: 25.7 kB / 459.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004098/0.2704, allocations: 445 kB / 459.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.148e-05/0.2705, allocations: 83.27 kB / 459.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2706, allocations: 57.92 kB / 459.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.2707, allocations: 317.9 kB / 459.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.2709, allocations: 64.2 kB / 460 MB, free: 9.594 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002657/0.2711, allocations: 179.6 kB / 460.2 MB, free: 9.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.2715, allocations: 232 kB / 460.4 MB, free: 9.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2715, allocations: 4.031 kB / 460.4 MB, free: 9.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006648/0.2722, allocations: 409.4 kB / 460.8 MB, free: 8.711 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2722, allocations: 4 kB / 460.8 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.903e-05/0.2722, allocations: 16 kB / 460.8 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003773/0.2726, allocations: 143.2 kB / 461 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.2728, allocations: 27.98 kB / 461 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007317/0.2735, allocations: 0.7124 MB / 461.7 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.2738, allocations: 19.84 kB / 461.7 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.2738, allocations: 16 kB / 461.8 MB, free: 7.75 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.000263/0.2741, allocations: 204.2 kB / 462 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.2742, allocations: 111.3 kB / 462.1 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008136/0.275, allocations: 399.4 kB / 462.5 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.275, allocations: 4 kB / 462.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.275, allocations: 0 / 462.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.275, allocations: 7.984 kB / 462.5 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006376/0.2757, allocations: 466.7 kB / 462.9 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-05/0.2757, allocations: 15.94 kB / 462.9 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.2758, allocations: 15.98 kB / 462.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002977/0.2761, allocations: 147.3 kB / 463.1 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.2761, allocations: 12 kB / 463.1 MB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006734/0.2768, allocations: 0.6968 MB / 463.8 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2768, allocations: 0 / 463.8 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.2774, allocations: 455.2 kB / 464.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.2776, allocations: 103.2 kB / 464.3 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.203e-05/0.2777, allocations: 4 kB / 464.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.2779, allocations: 4 kB / 464.4 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.625e-05/0.278, allocations: 19.97 kB / 464.4 MB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.278, allocations: 12.06 kB / 464.4 MB, free: 5.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000673/0.2787, allocations: 0.5422 MB / 464.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2787, allocations: 3.938 kB / 464.9 MB, free: 4.457 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005827/0.2793, allocations: 195.7 kB / 465.1 MB, free: 4.266 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.001359/0.2806, allocations: 1.173 MB / 466.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.2812, allocations: 276.9 kB / 466.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2812, allocations: 0 / 466.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.2815, allocations: 163.3 kB / 466.7 MB, free: 2.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.2823, allocations: 178.5 kB / 466.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006975/0.2892, allocations: 5.319 MB / 472.2 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.2896, allocations: 345.4 kB / 472.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000298/0.2899, allocations: 114.7 kB / 472.7 MB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.2902, allocations: 311.3 kB / 473 MB, free: 12.14 MB / 382.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2902, allocations: 0 / 473 MB, free: 12.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05218/0.3424, allocations: 18.86 MB / 491.8 MB, free: 9.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.62, allocations: 7.812 kB / 491.8 MB, free: 9.531 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.15612673200667]