Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001458/0.001458, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.001627/0.001627, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 55.92 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2977, allocations: 49.17 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005257/0.3029, allocations: 5.162 MB / 401.5 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009377/0.3123, allocations: 8.722 MB / 410.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009042/0.3132, allocations: 57.84 kB / 410.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.3144, allocations: 390.3 kB / 410.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003156/0.3175, allocations: 0.8299 MB / 411.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.3195, allocations: 0.5794 MB / 412.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00302/0.3225, allocations: 1.655 MB / 413.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002684/0.3228, allocations: 106 kB / 413.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005466/0.3233, allocations: 297.4 kB / 414.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000474/0.3238, allocations: 318.5 kB / 414.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.845e-05/0.3239, allocations: 30.5 kB / 414.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00179/0.3257, allocations: 0.5616 MB / 415 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.3258, allocations: 104.1 kB / 415.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004595/0.3263, allocations: 402.8 kB / 415.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002015/0.3283, allocations: 1.213 MB / 416.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3283, allocations: 0 / 416.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3283, allocations: 0 / 416.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.3283, allocations: 0 / 416.7 MB, free: 11.47 MB / 334.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.002414/0.3307, allocations: 1.235 MB / 418 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.3308, allocations: 14.2 kB / 418 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.754e-05/0.3309, allocations: 63.44 kB / 418 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.3311, allocations: 120 kB / 418.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.3326, allocations: 0.789 MB / 419 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.3326, allocations: 17.5 kB / 419 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.371e-05/0.3326, allocations: 24.62 kB / 419 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006361/0.3333, allocations: 309 kB / 419.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3333, allocations: 0 / 419.3 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.3333, allocations: 10.19 kB / 419.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.3333, allocations: 10.27 kB / 419.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004918/0.3338, allocations: 236.9 kB / 419.5 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.3359, allocations: 1.155 MB / 420.7 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003968/0.3363, allocations: 184.8 kB / 420.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.3366, allocations: 190.4 kB / 421.1 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007206/0.3439, allocations: 3.102 MB / 424.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3439, allocations: 41.03 kB / 424.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.995e-06/0.3439, allocations: 3.938 kB / 424.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001667/0.3456, allocations: 0.5757 MB / 424.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.3456, allocations: 79.73 kB / 424.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/0.3467, allocations: 0.7996 MB / 425.7 MB, free: 5.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.3467, allocations: 29.7 kB / 425.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004069/0.3471, allocations: 453 kB / 426.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.468e-05/0.3472, allocations: 79.27 kB / 426.2 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.902e-05/0.3473, allocations: 57.94 kB / 426.3 MB, free: 5.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3475, allocations: 321.9 kB / 426.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3476, allocations: 68.2 kB / 426.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.3478, allocations: 145.8 kB / 426.8 MB, free: 4.477 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.3482, allocations: 228.5 kB / 427 MB, free: 4.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3482, allocations: 0 / 427 MB, free: 4.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006822/0.3489, allocations: 406.3 kB / 427.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/0.3489, allocations: 8.031 kB / 427.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/0.349, allocations: 19.98 kB / 427.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003915/0.3493, allocations: 144.6 kB / 427.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.3495, allocations: 31.97 kB / 427.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007535/0.3503, allocations: 0.72 MB / 428.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.3506, allocations: 27.83 kB / 428.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.3506, allocations: 12 kB / 428.4 MB, free: 2.828 MB / 334.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.0002736/0.3509, allocations: 197.7 kB / 428.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.351, allocations: 115.3 kB / 428.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007866/0.3518, allocations: 391.6 kB / 429.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3518, allocations: 0 / 429.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3518, allocations: 4 kB / 429.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3518, allocations: 3.984 kB / 429.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006541/0.3525, allocations: 486.6 kB / 429.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/0.3525, allocations: 19.94 kB / 429.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.3526, allocations: 27.91 kB / 429.6 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002799/0.3529, allocations: 128.7 kB / 429.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3529, allocations: 8 kB / 429.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006844/0.3536, allocations: 0.7046 MB / 430.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3536, allocations: 0 / 430.4 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006378/0.3543, allocations: 456.1 kB / 430.9 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.3545, allocations: 99.27 kB / 431 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.099e-05/0.3546, allocations: 8.062 kB / 431 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.3548, allocations: 15.98 kB / 431 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.3548, allocations: 15.92 kB / 431 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3549, allocations: 8 kB / 431 MB, free: 68 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007683/0.3556, allocations: 0.5423 MB / 431.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3556, allocations: 0 / 431.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006924/0.3563, allocations: 191.7 kB / 431.8 MB, free: 15.33 MB / 350.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.001594/0.3579, allocations: 1.173 MB / 432.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006293/0.3585, allocations: 272 kB / 433.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3585, allocations: 4 kB / 433.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.3589, allocations: 172.5 kB / 433.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006321/0.3595, allocations: 136.2 kB / 433.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007606/0.3671, allocations: 5.326 MB / 438.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005873/0.3677, allocations: 0.9374 MB / 439.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003107/0.368, allocations: 110.7 kB / 439.9 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.3684, allocations: 315.3 kB / 440.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3684, allocations: 0 / 440.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05809/0.4264, allocations: 18.64 MB / 458.8 MB, free: 3.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.59/15.01, allocations: 3.906 kB / 458.8 MB, free: 3.898 MB / 366.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.59046723996289]