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.001274/0.001274, allocations: 112 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001368/0.001368, allocations: 184.6 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.388/1.388, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001548/0.001548, allocations: 43.94 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.252, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006502/0.2585, allocations: 5.308 MB / 427.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.2701, allocations: 9.111 MB / 437 MB, free: 116 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007691/0.2709, allocations: 59.38 kB / 437.1 MB, free: 56 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.272, allocations: 401.5 kB / 437.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002608/0.2746, allocations: 0.8418 MB / 438.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.2763, allocations: 0.5909 MB / 438.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002553/0.2788, allocations: 1.701 MB / 440.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.2791, allocations: 107.3 kB / 440.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004348/0.2795, allocations: 314.6 kB / 441 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004375/0.2799, allocations: 329.9 kB / 441.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.673e-05/0.28, allocations: 28 kB / 441.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.2815, allocations: 0.6555 MB / 442 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.2816, allocations: 95.39 kB / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004541/0.282, allocations: 413.4 kB / 442.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002028/0.2841, allocations: 1.202 MB / 443.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.2841, allocations: 0 / 443.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2841, allocations: 0 / 443.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.779e-05/0.2841, allocations: 0 / 443.7 MB, free: 9.367 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.00226/0.2863, allocations: 1.234 MB / 445 MB, free: 8.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.2864, allocations: 12.03 kB / 445 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.087e-05/0.2865, allocations: 66.66 kB / 445.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.2867, allocations: 120.2 kB / 445.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.2879, allocations: 0.7848 MB / 446 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.2879, allocations: 16.5 kB / 446 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.108e-05/0.288, allocations: 24 kB / 446 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005262/0.2885, allocations: 307.8 kB / 446.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2885, allocations: 4 kB / 446.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.2886, allocations: 12 kB / 446.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.2886, allocations: 11.98 kB / 446.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004415/0.289, allocations: 230.1 kB / 446.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.2909, allocations: 1.156 MB / 447.7 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.2912, allocations: 174.7 kB / 447.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.2915, allocations: 208.4 kB / 448.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006612/0.2982, allocations: 3.1 MB / 451.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.2982, allocations: 38.56 kB / 451.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.215e-06/0.2982, allocations: 0 / 451.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001597/0.2998, allocations: 0.5871 MB / 451.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.2999, allocations: 77.11 kB / 451.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009666/0.3008, allocations: 0.8064 MB / 452.7 MB, free: 164 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.3008, allocations: 29.7 kB / 452.7 MB, free: 128 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/0.3012, allocations: 441.1 kB / 453.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.802e-05/0.3013, allocations: 83.27 kB / 453.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.3014, allocations: 65.83 kB / 453.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.3015, allocations: 321.9 kB / 453.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.3017, allocations: 68.2 kB / 453.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.3019, allocations: 150.9 kB / 453.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.3022, allocations: 228.4 kB / 454 MB, free: 14.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3022, allocations: 0 / 454 MB, free: 14.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006209/0.3028, allocations: 408.3 kB / 454.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.3029, allocations: 8 kB / 454.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.855e-05/0.3029, allocations: 12.28 kB / 454.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003664/0.3032, allocations: 148 kB / 454.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.3034, allocations: 39.91 kB / 454.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006717/0.3041, allocations: 0.7007 MB / 455.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.3043, allocations: 23.84 kB / 455.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.3044, allocations: 16 kB / 455.4 MB, free: 13.34 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.0002557/0.3046, allocations: 201.7 kB / 455.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.3048, allocations: 107.3 kB / 455.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007679/0.3055, allocations: 403.5 kB / 456.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3055, allocations: 4 kB / 456.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3055, allocations: 0 / 456.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3055, allocations: 3.984 kB / 456.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006086/0.3062, allocations: 490.5 kB / 456.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/0.3062, allocations: 12 kB / 456.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.3063, allocations: 19.98 kB / 456.6 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002843/0.3066, allocations: 148.6 kB / 456.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.3066, allocations: 4 kB / 456.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006245/0.3072, allocations: 0.7046 MB / 457.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3072, allocations: 3.938 kB / 457.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005788/0.3078, allocations: 444.4 kB / 457.9 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.308, allocations: 95.33 kB / 458 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.3081, allocations: 4 kB / 458 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3083, allocations: 12.06 kB / 458 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.3083, allocations: 15.97 kB / 458 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.3084, allocations: 12 kB / 458 MB, free: 10.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006443/0.309, allocations: 0.5422 MB / 458.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.309, allocations: 0 / 458.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005549/0.3096, allocations: 199.6 kB / 458.8 MB, free: 9.844 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.001284/0.3109, allocations: 1.18 MB / 459.9 MB, free: 8.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005723/0.3114, allocations: 265.8 kB / 460.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3114, allocations: 0.5625 kB / 460.2 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.3117, allocations: 167.3 kB / 460.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.3124, allocations: 161.7 kB / 460.5 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.3193, allocations: 5.341 MB / 465.9 MB, free: 2.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005275/0.3198, allocations: 0.9413 MB / 466.8 MB, free: 1.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000318/0.3201, allocations: 110.7 kB / 466.9 MB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.3205, allocations: 311.3 kB / 467.2 MB, free: 1.117 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3205, allocations: 0 / 467.2 MB, free: 1.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05389/0.3744, allocations: 18.63 MB / 485.9 MB, free: 14.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/14.93, allocations: 10.55 kB / 485.9 MB, free: 14.68 MB / 398.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.27481620386243]