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.002298/0.002298, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.002221/0.002221, allocations: 189 kB / 21.43 MB, free: 1.641 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.449/1.449, allocations: 225.6 MB / 249.8 MB, free: 3.609 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 60.06 kB / 366.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09782, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006841/0.1047, allocations: 5.305 MB / 423.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.1168, allocations: 9.091 MB / 432.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.1179, allocations: 59.38 kB / 432.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.1192, allocations: 401.4 kB / 433.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003055/0.1222, allocations: 0.8419 MB / 434.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1244, allocations: 0.6064 MB / 434.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.1274, allocations: 1.685 MB / 436.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.1277, allocations: 107.1 kB / 436.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000541/0.1283, allocations: 322.5 kB / 436.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000535/0.1288, allocations: 318 kB / 437.2 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.505e-05/0.1289, allocations: 28 kB / 437.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.1308, allocations: 0.6516 MB / 437.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.131, allocations: 107.3 kB / 438 MB, free: 9.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005984/0.1316, allocations: 405.5 kB / 438.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.1337, allocations: 1.202 MB / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1337, allocations: 0 / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1337, allocations: 0 / 439.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.712e-05/0.1338, allocations: 0 / 439.6 MB, free: 7.402 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.00228/0.136, allocations: 1.309 MB / 440.9 MB, free: 6.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1361, allocations: 12.03 kB / 440.9 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.314e-05/0.1361, allocations: 8.75 kB / 440.9 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.308e-05/0.1362, allocations: 62.72 kB / 441 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.1363, allocations: 124.2 kB / 441.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.1377, allocations: 0.8604 MB / 441.9 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.1377, allocations: 20.56 kB / 442 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.1378, allocations: 28 kB / 442 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.1384, allocations: 307.7 kB / 442.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1384, allocations: 0 / 442.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.1384, allocations: 15.94 kB / 442.3 MB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1384, allocations: 4 kB / 442.3 MB, free: 4.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004647/0.1389, allocations: 234.1 kB / 442.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.141, allocations: 1.179 MB / 443.7 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.1414, allocations: 178.6 kB / 443.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.1417, allocations: 194 kB / 444.1 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1811/0.3228, allocations: 8.565 MB / 452.7 MB, free: 25.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.3228, allocations: 35.78 kB / 452.7 MB, free: 25.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.435e-06/0.3228, allocations: 1.594 kB / 452.7 MB, free: 25.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001462/0.3243, allocations: 0.6538 MB / 453.3 MB, free: 25.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3243, allocations: 84.62 kB / 453.4 MB, free: 25.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000778/0.3251, allocations: 0.7983 MB / 454.2 MB, free: 25.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.3251, allocations: 30.3 kB / 454.3 MB, free: 25.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.3253, allocations: 440.7 kB / 454.7 MB, free: 25.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.053e-05/0.3254, allocations: 86.27 kB / 454.8 MB, free: 24.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.3255, allocations: 64.33 kB / 454.8 MB, free: 24.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.3255, allocations: 322.6 kB / 455.1 MB, free: 24.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3257, allocations: 65.16 kB / 455.2 MB, free: 24.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.3258, allocations: 146.8 kB / 455.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.3261, allocations: 229.4 kB / 455.6 MB, free: 24.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3261, allocations: 5.875 kB / 455.6 MB, free: 24.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005431/0.3267, allocations: 405 kB / 456 MB, free: 24.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3267, allocations: 5.219 kB / 456 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/0.3267, allocations: 14.98 kB / 456 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003765/0.3271, allocations: 145.9 kB / 456.1 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3272, allocations: 38.84 kB / 456.2 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000511/0.3278, allocations: 0.7034 MB / 456.9 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.328, allocations: 36.81 kB / 456.9 MB, free: 23.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.45e-05/0.328, allocations: 21.58 kB / 456.9 MB, free: 23.86 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.0001919/0.3282, allocations: 192.8 kB / 457.1 MB, free: 23.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3283, allocations: 107.6 kB / 457.2 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00074/0.3291, allocations: 393 kB / 457.6 MB, free: 23.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3291, allocations: 7.312 kB / 457.6 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3291, allocations: 1.031 kB / 457.6 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3291, allocations: 1.312 kB / 457.6 MB, free: 23.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005428/0.3296, allocations: 0.5074 MB / 458.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/0.3297, allocations: 13.42 kB / 458.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.3298, allocations: 18.47 kB / 458.2 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002825/0.3301, allocations: 141.8 kB / 458.3 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.3301, allocations: 10.16 kB / 458.3 MB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005455/0.3306, allocations: 0.7017 MB / 459 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3306, allocations: 448 / 459 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006035/0.3312, allocations: 461.5 kB / 459.5 MB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001505/0.3314, allocations: 176.2 kB / 459.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.156e-05/0.3314, allocations: 2.781 kB / 459.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3316, allocations: 7.828 kB / 459.6 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.3317, allocations: 13.98 kB / 459.7 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.3317, allocations: 12.16 kB / 459.7 MB, free: 22.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005731/0.3323, allocations: 0.5426 MB / 460.2 MB, free: 22.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3323, allocations: 3.75 kB / 460.2 MB, free: 22.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005528/0.3329, allocations: 199.3 kB / 460.4 MB, free: 22.12 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.001069/0.3339, allocations: 1.195 MB / 461.6 MB, free: 21.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005706/0.3345, allocations: 264.1 kB / 461.9 MB, free: 21.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3345, allocations: 0 / 461.9 MB, free: 21.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002849/0.3348, allocations: 173.5 kB / 462 MB, free: 21.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007634/0.3355, allocations: 160.6 kB / 462.2 MB, free: 21.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006292/0.3418, allocations: 5.332 MB / 467.5 MB, free: 18.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3422, allocations: 0.9383 MB / 468.5 MB, free: 17.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003246/0.3425, allocations: 112.3 kB / 468.6 MB, free: 17.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.3428, allocations: 314.3 kB / 468.9 MB, free: 17.32 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3428, allocations: 3.938 kB / 468.9 MB, free: 17.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04639/0.3892, allocations: 18.45 MB / 487.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.71, allocations: 19.75 kB / 487.3 MB, free: 7.773 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/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: 16.290418012009468]