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.001318/0.001318, allocations: 123.8 kB / 20.44 MB, free: 1.297 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.001495/0.001495, allocations: 211 kB / 23.74 MB, free: 4.531 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.002128/0.002128, allocations: 39.94 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.249, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006774/0.2558, allocations: 5.33 MB / 436.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01335/0.2692, allocations: 9.169 MB / 445.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.2702, allocations: 55.38 kB / 445.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2716, allocations: 393.4 kB / 446.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003708/0.2753, allocations: 0.8419 MB / 446.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002455/0.2778, allocations: 0.6065 MB / 447.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003406/0.2812, allocations: 1.733 MB / 449.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003882/0.2816, allocations: 95.34 kB / 449.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007355/0.2823, allocations: 334.5 kB / 449.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006863/0.283, allocations: 318 kB / 450 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2831, allocations: 28 kB / 450 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.2853, allocations: 0.6633 MB / 450.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.2854, allocations: 103.3 kB / 450.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005994/0.286, allocations: 409.5 kB / 451.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002187/0.2882, allocations: 1.218 MB / 452.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2882, allocations: 4 kB / 452.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2882, allocations: 0 / 452.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.576e-05/0.2882, allocations: 3.938 kB / 452.4 MB, free: 1.488 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.002358/0.2906, allocations: 1.234 MB / 453.6 MB, free: 224 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.2906, allocations: 15.97 kB / 453.6 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.348e-05/0.2907, allocations: 62.72 kB / 453.7 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003591/0.2911, allocations: 132.2 kB / 453.8 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.2927, allocations: 0.7848 MB / 454.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.2927, allocations: 16.5 kB / 454.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.2927, allocations: 27.95 kB / 454.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.2934, allocations: 319.7 kB / 455 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.2934, allocations: 0 / 455 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.2934, allocations: 8 kB / 455 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.2934, allocations: 8 kB / 455 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004601/0.2939, allocations: 242 kB / 455.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002064/0.2959, allocations: 1.148 MB / 456.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.2963, allocations: 174.7 kB / 456.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.2967, allocations: 197.3 kB / 456.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007401/0.3041, allocations: 3.111 MB / 459.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.3041, allocations: 34.56 kB / 459.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.205e-06/0.3041, allocations: 0 / 459.9 MB, free: 9.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001777/0.3059, allocations: 0.5829 MB / 460.5 MB, free: 9.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.731e-05/0.306, allocations: 81.11 kB / 460.5 MB, free: 9.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.3071, allocations: 0.8026 MB / 461.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.3072, allocations: 29.7 kB / 461.4 MB, free: 8.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004125/0.3076, allocations: 445 kB / 461.8 MB, free: 7.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.3077, allocations: 79.27 kB / 461.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.3078, allocations: 57.89 kB / 461.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3079, allocations: 321.9 kB / 462.3 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.3081, allocations: 68.2 kB / 462.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.3083, allocations: 145.9 kB / 462.5 MB, free: 7.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.3087, allocations: 234.1 kB / 462.7 MB, free: 6.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3087, allocations: 3.938 kB / 462.7 MB, free: 6.828 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007579/0.3095, allocations: 405.4 kB / 463.1 MB, free: 6.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3095, allocations: 4 kB / 463.1 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-05/0.3095, allocations: 20 kB / 463.1 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003977/0.3099, allocations: 139.7 kB / 463.3 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.3101, allocations: 39.91 kB / 463.3 MB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007571/0.3109, allocations: 0.6968 MB / 464 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.3112, allocations: 31.88 kB / 464 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/0.3112, allocations: 20 kB / 464 MB, free: 5.449 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.0002854/0.3115, allocations: 197.7 kB / 464.2 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3117, allocations: 107.3 kB / 464.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008951/0.3126, allocations: 422.1 kB / 464.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3126, allocations: 3.938 kB / 464.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3126, allocations: 3.984 kB / 464.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3126, allocations: 0 / 464.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007366/0.3133, allocations: 490.6 kB / 465.2 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.607e-05/0.3133, allocations: 12 kB / 465.2 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/0.3135, allocations: 19.97 kB / 465.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.3138, allocations: 144.6 kB / 465.4 MB, free: 4.016 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.3138, allocations: 8 kB / 465.4 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006867/0.3145, allocations: 0.6998 MB / 466.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3145, allocations: 0 / 466.1 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006391/0.3151, allocations: 448.5 kB / 466.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.3154, allocations: 95.33 kB / 466.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.3155, allocations: 4 kB / 466.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.3157, allocations: 7.984 kB / 466.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/0.3158, allocations: 19.94 kB / 466.7 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.3158, allocations: 8 kB / 466.7 MB, free: 2.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007472/0.3165, allocations: 0.5461 MB / 467.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3165, allocations: 4 kB / 467.2 MB, free: 2.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006839/0.3172, allocations: 195.6 kB / 467.4 MB, free: 1.945 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.001569/0.3188, allocations: 1.181 MB / 468.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006789/0.3195, allocations: 279.3 kB / 468.9 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3195, allocations: 0 / 468.9 MB, free: 464 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.3198, allocations: 163.3 kB / 469 MB, free: 288 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000849/0.3206, allocations: 164.8 kB / 469.2 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008437/0.3291, allocations: 5.336 MB / 474.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.3297, allocations: 0.9374 MB / 475.5 MB, free: 9.633 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003328/0.33, allocations: 110.7 kB / 475.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.3304, allocations: 311.3 kB / 475.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3304, allocations: 0 / 475.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05828/0.3887, allocations: 18.69 MB / 494.6 MB, free: 6.742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.64/15.03, allocations: 0 / 494.6 MB, free: 6.742 MB / 398.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.511605971027166]