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.001258/0.001258, allocations: 114.8 kB / 18.49 MB, free: 4.559 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.00137/0.00137, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.433/1.433, allocations: 230.6 MB / 254.8 MB, free: 15.23 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 51.92 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006678/0.1143, allocations: 5.312 MB / 432.3 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01152/0.1258, allocations: 9.134 MB / 441.5 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006495/0.1265, allocations: 63.31 kB / 441.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009936/0.1275, allocations: 397.5 kB / 441.9 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.1299, allocations: 0.8497 MB / 442.8 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.1317, allocations: 0.6102 MB / 443.4 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002914/0.1346, allocations: 1.716 MB / 445.1 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.1348, allocations: 99.11 kB / 445.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005259/0.1354, allocations: 322.5 kB / 445.5 MB, free: 2.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.1358, allocations: 318 kB / 445.8 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.1358, allocations: 35.94 kB / 445.8 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.1375, allocations: 0.6711 MB / 446.5 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.119e-05/0.1375, allocations: 99.38 kB / 446.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.1379, allocations: 401.5 kB / 447 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2044/0.3423, allocations: 1.213 MB / 448.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3423, allocations: 0 / 448.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3423, allocations: 0.9375 kB / 448.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3423, allocations: 0 / 448.2 MB, free: 12.49 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.001975/0.3443, allocations: 1.317 MB / 449.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3443, allocations: 10.22 kB / 449.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.333e-05/0.3444, allocations: 8.844 kB / 449.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.479e-05/0.3444, allocations: 66.03 kB / 449.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002741/0.3447, allocations: 132.3 kB / 449.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009719/0.3457, allocations: 0.8548 MB / 450.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3457, allocations: 23.09 kB / 450.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.3457, allocations: 29.11 kB / 450.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.3462, allocations: 307.5 kB / 451 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3462, allocations: 0 / 451 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.794e-05/0.3462, allocations: 9.531 kB / 451 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.3462, allocations: 12.02 kB / 451 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.3466, allocations: 237.9 kB / 451.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.3482, allocations: 1.188 MB / 452.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.3485, allocations: 173.9 kB / 452.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.3488, allocations: 194 kB / 452.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007213/0.356, allocations: 8.883 MB / 461.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.356, allocations: 40.44 kB / 461.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.356, allocations: 0 / 461.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001585/0.3576, allocations: 0.65 MB / 462.3 MB, free: 2.742 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.3577, allocations: 80.48 kB / 462.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009965/0.3587, allocations: 0.7989 MB / 463.2 MB, free: 2.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.3587, allocations: 29.42 kB / 463.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.359, allocations: 444.7 kB / 463.7 MB, free: 2.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.575e-05/0.359, allocations: 88.53 kB / 463.8 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.285e-05/0.3591, allocations: 57.55 kB / 463.8 MB, free: 2.262 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.795e-05/0.3592, allocations: 319.4 kB / 464.1 MB, free: 1.953 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3593, allocations: 70.39 kB / 464.2 MB, free: 1.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.3595, allocations: 155.1 kB / 464.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.3598, allocations: 224.4 kB / 464.6 MB, free: 1.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3598, allocations: 1.094 kB / 464.6 MB, free: 1.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005938/0.3604, allocations: 407.9 kB / 465 MB, free: 1.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3604, allocations: 5.656 kB / 465 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.3605, allocations: 16.33 kB / 465 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/0.3608, allocations: 141.1 kB / 465.1 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.361, allocations: 36.52 kB / 465.2 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006382/0.3617, allocations: 0.7159 MB / 465.9 MB, free: 17.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.3619, allocations: 25.8 kB / 465.9 MB, free: 17.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/0.362, allocations: 12.48 kB / 465.9 MB, free: 17.12 MB / 382.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.0002485/0.3622, allocations: 203.8 kB / 466.1 MB, free: 17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.3623, allocations: 107.2 kB / 466.2 MB, free: 16.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007707/0.3631, allocations: 403.6 kB / 466.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3631, allocations: 1.406 kB / 466.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3631, allocations: 1.344 kB / 466.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3631, allocations: 7.016 kB / 466.6 MB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.3638, allocations: 0.5073 MB / 467.1 MB, free: 16.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/0.3638, allocations: 14.7 kB / 467.1 MB, free: 16.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.3639, allocations: 19.53 kB / 467.2 MB, free: 16.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002664/0.3642, allocations: 135.2 kB / 467.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.3642, allocations: 12.75 kB / 467.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005989/0.3648, allocations: 0.7 MB / 468 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3648, allocations: 2.625 kB / 468 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.3654, allocations: 453.2 kB / 468.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.3656, allocations: 171.7 kB / 468.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.433e-05/0.3656, allocations: 6.953 kB / 468.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3658, allocations: 7.375 kB / 468.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.3659, allocations: 15.8 kB / 468.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.3659, allocations: 14.42 kB / 468.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006686/0.3666, allocations: 0.5376 MB / 469.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3666, allocations: 0 / 469.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007177/0.3673, allocations: 202.3 kB / 469.4 MB, free: 15.24 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.001364/0.3687, allocations: 1.179 MB / 470.6 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005842/0.3693, allocations: 271.6 kB / 470.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3693, allocations: 0 / 470.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.3696, allocations: 168.9 kB / 471 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.3703, allocations: 164.9 kB / 471.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007584/0.3779, allocations: 5.328 MB / 476.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.3785, allocations: 0.9376 MB / 477.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003558/0.3788, allocations: 105.8 kB / 477.5 MB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.3792, allocations: 315.6 kB / 477.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3792, allocations: 7.938 kB / 477.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04588/0.4251, allocations: 18.5 MB / 496.3 MB, free: 1.047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.83, allocations: 13.31 kB / 496.4 MB, free: 1.043 MB / 382.1 MB " [Timeout remaining time 646] (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: 16.380051961983554]