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.001287/0.001287, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.00127/0.00127, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.408/1.408, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.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.001481/0.001481, allocations: 43.92 kB / 365.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09721, allocations: 52.15 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006582/0.1038, allocations: 5.301 MB / 423.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.1154, allocations: 9.088 MB / 432.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008071/0.1162, allocations: 39.69 kB / 432.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1173, allocations: 401.4 kB / 432.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002546/0.1198, allocations: 0.8381 MB / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001905/0.1217, allocations: 0.6103 MB / 434 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002682/0.1244, allocations: 1.685 MB / 435.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.1247, allocations: 107 kB / 435.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004378/0.1251, allocations: 310.5 kB / 436.1 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004187/0.1255, allocations: 326 kB / 436.5 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.1256, allocations: 32 kB / 436.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.1271, allocations: 0.6516 MB / 437.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1272, allocations: 99.33 kB / 437.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004321/0.1276, allocations: 409.5 kB / 437.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001854/0.1295, allocations: 1.206 MB / 438.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1295, allocations: 0 / 438.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1295, allocations: 0 / 438.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.1295, allocations: 0 / 438.8 MB, free: 7.453 MB / 366.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.002121/0.1316, allocations: 1.302 MB / 440.1 MB, free: 6.098 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.1317, allocations: 12.03 kB / 440.2 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.14e-05/0.1318, allocations: 66.72 kB / 440.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.1319, allocations: 116.2 kB / 440.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.1333, allocations: 0.8684 MB / 441.2 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.1333, allocations: 16.56 kB / 441.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.1334, allocations: 24 kB / 441.2 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.1339, allocations: 311.7 kB / 441.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1339, allocations: 0 / 441.5 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.1339, allocations: 12 kB / 441.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.134, allocations: 4 kB / 441.6 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.1344, allocations: 238.1 kB / 441.8 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.1363, allocations: 1.179 MB / 443 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003727/0.1366, allocations: 174.5 kB / 443.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.137, allocations: 198.1 kB / 443.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1882/0.3252, allocations: 8.564 MB / 451.9 MB, free: 25.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3252, allocations: 45.91 kB / 451.9 MB, free: 25.76 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.3252, allocations: 0 / 451.9 MB, free: 25.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001439/0.3266, allocations: 0.651 MB / 452.6 MB, free: 25.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.3267, allocations: 81.34 kB / 452.7 MB, free: 25.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008077/0.3275, allocations: 0.7987 MB / 453.5 MB, free: 25.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3275, allocations: 28.61 kB / 453.5 MB, free: 25.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002602/0.3278, allocations: 450.3 kB / 453.9 MB, free: 25.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.3278, allocations: 77.75 kB / 454 MB, free: 25.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.934e-05/0.3279, allocations: 57.73 kB / 454.1 MB, free: 25.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.697e-05/0.3279, allocations: 319.7 kB / 454.4 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.3281, allocations: 69.3 kB / 454.5 MB, free: 24.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001609/0.3282, allocations: 144.8 kB / 454.6 MB, free: 24.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.3285, allocations: 229.8 kB / 454.8 MB, free: 24.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3285, allocations: 5.094 kB / 454.8 MB, free: 24.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005426/0.3291, allocations: 406.2 kB / 455.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3291, allocations: 8.219 kB / 455.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/0.3291, allocations: 17.69 kB / 455.2 MB, free: 24.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003512/0.3295, allocations: 145.8 kB / 455.4 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.3296, allocations: 32.58 kB / 455.4 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004855/0.3301, allocations: 0.707 MB / 456.1 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3303, allocations: 38.47 kB / 456.2 MB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.458e-05/0.3304, allocations: 17.34 kB / 456.2 MB, free: 24.05 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.0001953/0.3306, allocations: 195.4 kB / 456.4 MB, free: 23.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.549e-05/0.3307, allocations: 113.8 kB / 456.5 MB, free: 23.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007007/0.3314, allocations: 389.5 kB / 456.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.3314, allocations: 6.812 kB / 456.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3314, allocations: 0.6562 kB / 456.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3314, allocations: 6.562 kB / 456.9 MB, free: 23.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005492/0.3319, allocations: 0.5035 MB / 457.4 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.208e-05/0.332, allocations: 13.81 kB / 457.4 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.3321, allocations: 16.78 kB / 457.4 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002697/0.3323, allocations: 141.7 kB / 457.6 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.3324, allocations: 11.7 kB / 457.6 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005168/0.3329, allocations: 0.7051 MB / 458.3 MB, free: 23.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3329, allocations: 4.031 kB / 458.3 MB, free: 23.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006017/0.3335, allocations: 456.1 kB / 458.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000196/0.3337, allocations: 174.3 kB / 458.9 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.3338, allocations: 6.344 kB / 458.9 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002027/0.334, allocations: 3.938 kB / 458.9 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.334, allocations: 25.33 kB / 458.9 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.334, allocations: 9.859 kB / 458.9 MB, free: 22.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000606/0.3347, allocations: 0.5417 MB / 459.5 MB, free: 22.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3347, allocations: 0 / 459.5 MB, free: 22.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005671/0.3352, allocations: 195.4 kB / 459.7 MB, free: 22.3 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.001103/0.3363, allocations: 1.194 MB / 460.9 MB, free: 21.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005521/0.3369, allocations: 266.8 kB / 461.1 MB, free: 21.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.676e-06/0.3369, allocations: 2.531 kB / 461.1 MB, free: 21.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.3371, allocations: 170.3 kB / 461.3 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.3378, allocations: 162.1 kB / 461.4 MB, free: 21.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006245/0.3441, allocations: 5.328 MB / 466.8 MB, free: 18.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.3445, allocations: 0.9393 MB / 467.7 MB, free: 17.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.3448, allocations: 115.3 kB / 467.8 MB, free: 17.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.3451, allocations: 313.9 kB / 468.1 MB, free: 17.46 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3451, allocations: 0 / 468.1 MB, free: 17.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0483/0.3934, allocations: 18.41 MB / 486.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.52/13.92, allocations: 11.69 kB / 486.6 MB, free: 8.043 MB / 366.1 MB " [Timeout remaining time 646] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.326538294088095]