Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001459/0.001459, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00159/0.00159, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 59.89 kB / 373.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1133, allocations: 53.37 MB / 427.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2229/0.3362, allocations: 5.313 MB / 432.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.3476, allocations: 9.146 MB / 441.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.3488, allocations: 61.31 kB / 441.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.3502, allocations: 402.1 kB / 442 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004162/0.3544, allocations: 0.8394 MB / 442.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003473/0.3579, allocations: 0.5957 MB / 443.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004141/0.362, allocations: 1.725 MB / 445.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003781/0.3624, allocations: 100.8 kB / 445.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009305/0.3633, allocations: 323.7 kB / 445.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008083/0.3641, allocations: 331.9 kB / 445.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001138/0.3642, allocations: 30.59 kB / 445.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.3668, allocations: 0.6571 MB / 446.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.3669, allocations: 104.5 kB / 446.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004248/0.3673, allocations: 408.4 kB / 447.1 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002024/0.3693, allocations: 1.217 MB / 448.3 MB, free: 208 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3693, allocations: 0 / 448.3 MB, free: 208 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3693, allocations: 9.031 kB / 448.3 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.311e-05/0.3694, allocations: 0.6094 kB / 448.3 MB, free: 200 kB / 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.002428/0.3718, allocations: 1.313 MB / 449.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.3718, allocations: 9.219 kB / 449.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.525e-05/0.3719, allocations: 10.91 kB / 449.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.042e-05/0.3719, allocations: 62 kB / 449.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003414/0.3723, allocations: 138.2 kB / 449.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.3737, allocations: 0.8547 MB / 450.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.3737, allocations: 18.83 kB / 450.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.647e-05/0.3738, allocations: 27.77 kB / 450.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.3744, allocations: 306.9 kB / 451 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3744, allocations: 0 / 451 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.3744, allocations: 10.88 kB / 451 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.3745, allocations: 11.23 kB / 451 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004899/0.375, allocations: 234.1 kB / 451.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.3771, allocations: 1.186 MB / 452.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000416/0.3775, allocations: 175.8 kB / 452.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/0.3779, allocations: 203.9 kB / 452.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.3894, allocations: 8.883 MB / 461.7 MB, free: 5.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.3895, allocations: 32.06 kB / 461.7 MB, free: 5.191 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 4.438e-06/0.3895, allocations: 4 kB / 461.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001845/0.3913, allocations: 0.6567 MB / 462.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.995e-05/0.3914, allocations: 83.64 kB / 462.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3925, allocations: 0.7944 MB / 463.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.3925, allocations: 30.98 kB / 463.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004112/0.393, allocations: 446.2 kB / 463.7 MB, free: 4.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.221e-05/0.393, allocations: 81.08 kB / 463.8 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3932, allocations: 58.92 kB / 463.9 MB, free: 3.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3933, allocations: 324.3 kB / 464.2 MB, free: 3.602 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.3935, allocations: 63.92 kB / 464.2 MB, free: 3.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.3937, allocations: 151.8 kB / 464.4 MB, free: 3.438 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.3941, allocations: 229.6 kB / 464.6 MB, free: 3.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3941, allocations: 5.125 kB / 464.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006866/0.3948, allocations: 401 kB / 465 MB, free: 3.055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3948, allocations: 6.75 kB / 465 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/0.3948, allocations: 21.45 kB / 465 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000414/0.3952, allocations: 140.2 kB / 465.2 MB, free: 2.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3954, allocations: 37.72 kB / 465.2 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007319/0.3961, allocations: 0.7052 MB / 465.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003596/0.3965, allocations: 36.27 kB / 466 MB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.3965, allocations: 15.88 kB / 466 MB, free: 2.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.0002559/0.3968, allocations: 190.6 kB / 466.2 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.3969, allocations: 108.7 kB / 466.3 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008233/0.3977, allocations: 401.4 kB / 466.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3978, allocations: 3.281 kB / 466.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3978, allocations: 1.453 kB / 466.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3978, allocations: 1.188 kB / 466.7 MB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000742/0.3985, allocations: 0.5076 MB / 467.2 MB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/0.3985, allocations: 19.92 kB / 467.2 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.3987, allocations: 16.3 kB / 467.2 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003015/0.399, allocations: 139.3 kB / 467.3 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.399, allocations: 12.39 kB / 467.4 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007044/0.3997, allocations: 0.6953 MB / 468 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3997, allocations: 4.062 kB / 468.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006345/0.4003, allocations: 455.6 kB / 468.5 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.4006, allocations: 175.8 kB / 468.7 MB, free: 348 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.031e-05/0.4006, allocations: 5.062 kB / 468.7 MB, free: 344 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.4008, allocations: 11.34 kB / 468.7 MB, free: 336 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.4009, allocations: 11.83 kB / 468.7 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.4009, allocations: 16.72 kB / 468.7 MB, free: 324 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007679/0.4017, allocations: 0.5404 MB / 469.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4017, allocations: 1.312 kB / 469.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008887/0.4026, allocations: 193.6 kB / 469.4 MB, free: 15.96 MB / 382.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.001605/0.4042, allocations: 1.184 MB / 470.6 MB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006554/0.4048, allocations: 277.3 kB / 470.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4048, allocations: 1.094 kB / 470.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.4052, allocations: 173.4 kB / 471.1 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.406, allocations: 162.2 kB / 471.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00743/0.4134, allocations: 5.322 MB / 476.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.414, allocations: 0.9377 MB / 477.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003367/0.4143, allocations: 110.9 kB / 477.6 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.4147, allocations: 313.1 kB / 477.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4147, allocations: 0 / 477.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04705/0.4617, allocations: 18.49 MB / 496.4 MB, free: 9.246 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/14.55, allocations: 7.156 kB / 496.4 MB, free: 9.242 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.146780711016618]