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.001002/0.001002, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009998/0.0009998, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8782/0.8782, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 2.786e-06/2.786e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.259e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004309/0.004331, allocations: 4.631 MB / 323.1 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006795/0.01113, allocations: 7.831 MB / 330.9 MB, free: 9.832 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004618/0.01159, allocations: 59.31 kB / 330.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006528/0.01224, allocations: 361.5 kB / 331.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.01393, allocations: 0.8804 MB / 332.2 MB, free: 8.531 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.01499, allocations: 0.6023 MB / 332.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.01647, allocations: 1.736 MB / 334.5 MB, free: 6.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.01665, allocations: 103.3 kB / 334.6 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003506/0.017, allocations: 454.9 kB / 335.1 MB, free: 5.621 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.01722, allocations: 227.2 kB / 335.3 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.01725, allocations: 28 kB / 335.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007718/0.01802, allocations: 0.5696 MB / 335.9 MB, free: 4.801 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/0.01808, allocations: 99.31 kB / 336 MB, free: 4.703 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.01824, allocations: 239.3 kB / 336.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009319/0.01917, allocations: 1.234 MB / 337.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.01918, allocations: 0 / 337.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01918, allocations: 4 kB / 337.5 MB, free: 3.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.01919, allocations: 0 / 337.5 MB, free: 3.227 MB / 298.7 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.001177/0.02037, allocations: 1.222 MB / 338.7 MB, free: 1.965 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.02041, allocations: 12.86 kB / 338.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.433e-05/0.02046, allocations: 58.73 kB / 338.7 MB, free: 1.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.296e-05/0.02056, allocations: 116.2 kB / 338.9 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008038/0.02136, allocations: 0.7844 MB / 339.6 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.02138, allocations: 20.88 kB / 339.7 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/0.02141, allocations: 31.94 kB / 339.7 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003812/0.0218, allocations: 333.5 kB / 340 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.0218, allocations: 0 / 340 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.02183, allocations: 12 kB / 340 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.02183, allocations: 8 kB / 340 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.0221, allocations: 234 kB / 340.3 MB, free: 288 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.02321, allocations: 1.09 MB / 341.4 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002558/0.02346, allocations: 182.5 kB / 341.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.02366, allocations: 201.2 kB / 341.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003704/0.02737, allocations: 3.073 MB / 344.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.02739, allocations: 34.56 kB / 344.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.02739, allocations: 4 kB / 344.8 MB, free: 11.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009734/0.02836, allocations: 0.5798 MB / 345.4 MB, free: 11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.02841, allocations: 81.09 kB / 345.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006069/0.02901, allocations: 0.7987 MB / 346.3 MB, free: 10.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.02903, allocations: 33.7 kB / 346.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.02928, allocations: 441 kB / 346.8 MB, free: 9.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.256e-05/0.02932, allocations: 83.27 kB / 346.8 MB, free: 9.535 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/0.02939, allocations: 57.94 kB / 346.9 MB, free: 9.473 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.672e-05/0.02947, allocations: 314 kB / 347.2 MB, free: 9.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.02956, allocations: 72.19 kB / 347.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.02969, allocations: 179.5 kB / 347.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002199/0.02991, allocations: 230.9 kB / 347.7 MB, free: 8.621 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.02992, allocations: 7.875 kB / 347.7 MB, free: 8.613 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003725/0.03029, allocations: 400.5 kB / 348.1 MB, free: 8.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.03031, allocations: 12.28 kB / 348.1 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.03033, allocations: 12 kB / 348.1 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.03058, allocations: 136.8 kB / 348.2 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-05/0.03068, allocations: 39.91 kB / 348.3 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000446/0.03112, allocations: 0.7112 MB / 349 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.03126, allocations: 35.7 kB / 349 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.03128, allocations: 19.98 kB / 349 MB, free: 7.227 MB / 314.7 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.0001759/0.03146, allocations: 189.8 kB / 349.2 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-05/0.03154, allocations: 111.3 kB / 349.3 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000487/0.03203, allocations: 403.5 kB / 349.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.03203, allocations: 0 / 349.7 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.03204, allocations: 11.92 kB / 349.7 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.03204, allocations: 0 / 349.7 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003929/0.03243, allocations: 466.7 kB / 350.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.03245, allocations: 12 kB / 350.2 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.182e-05/0.03251, allocations: 19.97 kB / 350.2 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.03268, allocations: 136.8 kB / 350.4 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.03269, allocations: 4 kB / 350.4 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004719/0.03317, allocations: 0.7044 MB / 351.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.03317, allocations: 0 / 351.1 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.03354, allocations: 460.2 kB / 351.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.03364, allocations: 91.39 kB / 351.6 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.03369, allocations: 8 kB / 351.6 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.0338, allocations: 11.98 kB / 351.6 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.03384, allocations: 15.92 kB / 351.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.03386, allocations: 12 kB / 351.7 MB, free: 4.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00044/0.0343, allocations: 0.5383 MB / 352.2 MB, free: 3.953 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0343, allocations: 0 / 352.2 MB, free: 3.953 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003853/0.03468, allocations: 195.6 kB / 352.4 MB, free: 3.762 MB / 314.7 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.0009028/0.03559, allocations: 1.195 MB / 353.6 MB, free: 2.539 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004504/0.03604, allocations: 271 kB / 353.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.03604, allocations: 0 / 353.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.03619, allocations: 169.7 kB / 354 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.03667, allocations: 159.5 kB / 354.2 MB, free: 1.934 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.04156, allocations: 5.32 MB / 359.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.04176, allocations: 353.3 kB / 359.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002028/0.04197, allocations: 110.7 kB / 359.9 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.04219, allocations: 308.4 kB / 360.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.04219, allocations: 3.938 kB / 360.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03234/0.07453, allocations: 18.94 MB / 379.2 MB, free: 8.938 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.216, allocations: 12.05 kB / 379.2 MB, free: 8.926 MB / 346.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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: 9.905035358853638]