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.001254/0.001254, allocations: 108.6 kB / 21.22 MB, free: 0.7344 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.001372/0.001372, allocations: 183.5 kB / 24.5 MB, free: 4.09 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.389/1.389, allocations: 225.6 MB / 253.3 MB, free: 13.03 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 47.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2501, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006466/0.2565, allocations: 5.308 MB / 428.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.268, allocations: 9.116 MB / 437.8 MB, free: 152 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008145/0.2688, allocations: 55.38 kB / 437.9 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.2699, allocations: 417.4 kB / 438.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002504/0.2724, allocations: 0.8342 MB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.2742, allocations: 0.5909 MB / 439.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002963/0.2772, allocations: 1.709 MB / 441.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.2774, allocations: 99.38 kB / 441.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005551/0.278, allocations: 322.5 kB / 441.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004534/0.2784, allocations: 322 kB / 442.2 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.494e-05/0.2785, allocations: 32 kB / 442.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001594/0.2801, allocations: 0.6516 MB / 442.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.2802, allocations: 99.33 kB / 442.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.2806, allocations: 405.5 kB / 443.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.2824, allocations: 1.21 MB / 444.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2824, allocations: 0 / 444.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2824, allocations: 0 / 444.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.2824, allocations: 4 kB / 444.5 MB, free: 9.391 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.002132/0.2846, allocations: 1.234 MB / 445.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.2846, allocations: 8.031 kB / 445.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.169e-05/0.2846, allocations: 12.67 kB / 445.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.271e-05/0.2847, allocations: 62.67 kB / 445.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.2849, allocations: 120.2 kB / 446 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.2863, allocations: 0.7807 MB / 446.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.2863, allocations: 16.5 kB / 446.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.2863, allocations: 24 kB / 446.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.2869, allocations: 315.8 kB / 447.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2869, allocations: 0 / 447.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.2869, allocations: 8 kB / 447.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.2869, allocations: 11.98 kB / 447.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004401/0.2874, allocations: 238 kB / 447.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.2893, allocations: 1.16 MB / 448.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.2897, allocations: 178.6 kB / 448.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003376/0.29, allocations: 193.3 kB / 448.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006638/0.2966, allocations: 3.111 MB / 452 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.2967, allocations: 34.56 kB / 452 MB, free: 1.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.2967, allocations: 0 / 452 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001635/0.2983, allocations: 0.5793 MB / 452.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.2984, allocations: 85.11 kB / 452.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.2994, allocations: 0.8064 MB / 453.5 MB, free: 176 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.2994, allocations: 29.7 kB / 453.5 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004008/0.2998, allocations: 437 kB / 454 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.184e-05/0.2999, allocations: 91.25 kB / 454 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3, allocations: 57.89 kB / 454.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3001, allocations: 321.9 kB / 454.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.3003, allocations: 68.2 kB / 454.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.3005, allocations: 143 kB / 454.6 MB, free: 15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.3008, allocations: 220.5 kB / 454.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.3008, allocations: 4 kB / 454.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007069/0.3016, allocations: 412.3 kB / 455.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3016, allocations: 4 kB / 455.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.694e-05/0.3016, allocations: 19.98 kB / 455.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.302, allocations: 144.3 kB / 455.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001756/0.3022, allocations: 35.91 kB / 455.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007691/0.303, allocations: 0.7046 MB / 456.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.3032, allocations: 19.88 kB / 456.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.3033, allocations: 16 kB / 456.2 MB, free: 13.37 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.0002833/0.3036, allocations: 205.8 kB / 456.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3037, allocations: 107.3 kB / 456.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007898/0.3045, allocations: 407.5 kB / 456.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3045, allocations: 0 / 456.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3045, allocations: 0 / 456.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.3045, allocations: 0 / 456.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000641/0.3051, allocations: 498.4 kB / 457.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/0.3051, allocations: 11.98 kB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3053, allocations: 19.98 kB / 457.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002998/0.3056, allocations: 144.6 kB / 457.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.3056, allocations: 7.984 kB / 457.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006588/0.3062, allocations: 0.6929 MB / 458.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3062, allocations: 3.938 kB / 458.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006037/0.3068, allocations: 455.1 kB / 458.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.307, allocations: 95.33 kB / 458.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/0.3071, allocations: 3.984 kB / 458.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.3073, allocations: 12 kB / 458.8 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.3074, allocations: 15.92 kB / 458.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.3074, allocations: 19.92 kB / 458.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006605/0.3081, allocations: 0.5344 MB / 459.4 MB, free: 10.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3081, allocations: 4 kB / 459.4 MB, free: 10.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006031/0.3087, allocations: 199.6 kB / 459.6 MB, free: 9.863 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.001407/0.3101, allocations: 1.173 MB / 460.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006056/0.3107, allocations: 269.8 kB / 461 MB, free: 8.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3107, allocations: 0 / 461 MB, free: 8.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.311, allocations: 163.3 kB / 461.2 MB, free: 8.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007517/0.3117, allocations: 168.7 kB / 461.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007295/0.319, allocations: 5.341 MB / 466.7 MB, free: 2.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/0.3196, allocations: 0.9413 MB / 467.6 MB, free: 1.555 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.3199, allocations: 106.7 kB / 467.7 MB, free: 1.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003543/0.3203, allocations: 311.3 kB / 468 MB, free: 1.141 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3203, allocations: 0 / 468 MB, free: 1.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04785/0.3681, allocations: 18.67 MB / 486.7 MB, free: 14.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.43, allocations: 8.172 kB / 486.7 MB, free: 14.69 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: 16.866279311012477]