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.001641/0.001641, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001785/0.001785, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 7.73 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.001471/0.001471, allocations: 43.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.25, allocations: 53.37 MB / 431.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005861/0.2559, allocations: 4.638 MB / 436.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009769/0.2657, allocations: 7.878 MB / 444.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005706/0.2662, allocations: 55.38 kB / 444.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009524/0.2672, allocations: 361.5 kB / 444.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002397/0.2696, allocations: 0.8419 MB / 445.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.2712, allocations: 0.6026 MB / 446.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00282/0.274, allocations: 1.725 MB / 447.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.2743, allocations: 99.34 kB / 448 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.2747, allocations: 338.5 kB / 448.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004088/0.2751, allocations: 321.9 kB / 448.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.844e-05/0.2752, allocations: 28 kB / 448.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.2765, allocations: 0.5971 MB / 449.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.2766, allocations: 99.33 kB / 449.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003452/0.2769, allocations: 310.1 kB / 449.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.2786, allocations: 1.237 MB / 451 MB, free: 3.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2786, allocations: 0 / 451 MB, free: 3.445 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2786, allocations: 0 / 451 MB, free: 3.445 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.2786, allocations: 3.938 kB / 451 MB, free: 3.441 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.001954/0.2805, allocations: 1.23 MB / 452.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.2806, allocations: 12.03 kB / 452.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.923e-05/0.2806, allocations: 4.688 kB / 452.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.679e-05/0.2807, allocations: 62.72 kB / 452.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.281, allocations: 144.1 kB / 452.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.2822, allocations: 0.7884 MB / 453.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2822, allocations: 16.5 kB / 453.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.68e-05/0.2823, allocations: 27.98 kB / 453.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005958/0.2829, allocations: 333.5 kB / 453.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2829, allocations: 0 / 453.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.2829, allocations: 4 kB / 453.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.2829, allocations: 15.98 kB / 453.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004229/0.2834, allocations: 234 kB / 453.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.2851, allocations: 1.097 MB / 454.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.2855, allocations: 178.6 kB / 455.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.2858, allocations: 189.3 kB / 455.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006626/0.2924, allocations: 3.092 MB / 458.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.2925, allocations: 42.5 kB / 458.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.2925, allocations: 0 / 458.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001629/0.2941, allocations: 0.581 MB / 459 MB, free: 11.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.2941, allocations: 81.11 kB / 459.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009323/0.2951, allocations: 0.7987 MB / 459.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.2951, allocations: 29.7 kB / 459.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003755/0.2955, allocations: 445 kB / 460.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.2956, allocations: 91.25 kB / 460.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.406e-05/0.2956, allocations: 53.94 kB / 460.5 MB, free: 9.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.2958, allocations: 321.9 kB / 460.8 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.2959, allocations: 64.2 kB / 460.8 MB, free: 9.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.2962, allocations: 175.5 kB / 461 MB, free: 9.047 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.2965, allocations: 236.1 kB / 461.2 MB, free: 8.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2965, allocations: 4 kB / 461.2 MB, free: 8.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000644/0.2972, allocations: 408.1 kB / 461.6 MB, free: 8.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.2972, allocations: 4 kB / 461.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.2972, allocations: 16 kB / 461.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003751/0.2976, allocations: 141.1 kB / 461.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.2978, allocations: 39.91 kB / 461.8 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006862/0.2985, allocations: 0.7073 MB / 462.5 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.2987, allocations: 23.86 kB / 462.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.2987, allocations: 23.94 kB / 462.6 MB, free: 7.402 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.0002455/0.299, allocations: 193.8 kB / 462.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.2991, allocations: 115.3 kB / 462.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000766/0.2999, allocations: 395.4 kB / 463.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2999, allocations: 0 / 463.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2999, allocations: 3.984 kB / 463.3 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2999, allocations: 4 kB / 463.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006031/0.3005, allocations: 466.7 kB / 463.7 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/0.3005, allocations: 16 kB / 463.8 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.3006, allocations: 19.97 kB / 463.8 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/0.3009, allocations: 140.6 kB / 463.9 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.3009, allocations: 8 kB / 463.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000637/0.3016, allocations: 0.7046 MB / 464.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3016, allocations: 0 / 464.6 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005988/0.3022, allocations: 451.2 kB / 465.1 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.3024, allocations: 95.33 kB / 465.2 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.078e-05/0.3024, allocations: 8 kB / 465.2 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3026, allocations: 3.984 kB / 465.2 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.3027, allocations: 15.98 kB / 465.2 MB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.3027, allocations: 11.94 kB / 465.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006497/0.3034, allocations: 0.5423 MB / 465.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3034, allocations: 11.94 kB / 465.8 MB, free: 4.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005723/0.304, allocations: 199.6 kB / 466 MB, free: 3.926 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.001332/0.3053, allocations: 1.173 MB / 467.1 MB, free: 2.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.3058, allocations: 274.2 kB / 467.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3059, allocations: 4 kB / 467.4 MB, free: 2.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.3061, allocations: 170 kB / 467.6 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007036/0.3068, allocations: 164.2 kB / 467.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006849/0.3137, allocations: 5.333 MB / 473.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.314, allocations: 349.3 kB / 473.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002903/0.3143, allocations: 106.7 kB / 473.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003384/0.3147, allocations: 311.3 kB / 473.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3147, allocations: 4 kB / 473.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04539/0.36, allocations: 18.59 MB / 492.4 MB, free: 9.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/14.33, allocations: 7.812 kB / 492.4 MB, free: 9.488 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: 16.80681920191273]