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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009879/0.0009879, allocations: 43.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2718, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00583/0.2777, allocations: 5.276 MB / 406 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009608/0.2873, allocations: 9.073 MB / 415.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005094/0.2879, allocations: 43.62 kB / 415.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000839/0.2887, allocations: 401.4 kB / 415.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001899/0.2906, allocations: 0.838 MB / 416.3 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.2919, allocations: 0.5948 MB / 416.9 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002111/0.2941, allocations: 1.689 MB / 418.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.2943, allocations: 159 kB / 418.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.2946, allocations: 310.6 kB / 419.1 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00032/0.295, allocations: 329.9 kB / 419.4 MB, free: 6.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.15e-05/0.295, allocations: 28 kB / 419.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.2962, allocations: 0.6477 MB / 420.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.28e-05/0.2963, allocations: 99.38 kB / 420.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003452/0.2967, allocations: 413.5 kB / 420.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.298, allocations: 1.195 MB / 421.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.298, allocations: 3.938 kB / 421.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.298, allocations: 0 / 421.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.298, allocations: 0 / 421.8 MB, free: 3.707 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.001683/0.2997, allocations: 1.271 MB / 423.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2998, allocations: 8.031 kB / 423.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.2999, allocations: 115.5 kB / 423.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.301, allocations: 0.8599 MB / 424 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.015e-05/0.3011, allocations: 16.56 kB / 424.1 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.3011, allocations: 27.91 kB / 424.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/0.3016, allocations: 307.6 kB / 424.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3016, allocations: 4 kB / 424.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.3017, allocations: 8 kB / 424.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3017, allocations: 11.98 kB / 424.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003971/0.3021, allocations: 234.1 kB / 424.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.3037, allocations: 1.183 MB / 425.8 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.3041, allocations: 198.6 kB / 426 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.3044, allocations: 229.9 kB / 426.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007753/0.3122, allocations: 8.554 MB / 434.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.3122, allocations: 42.56 kB / 434.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.3122, allocations: 0 / 434.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001507/0.3138, allocations: 0.6582 MB / 435.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.96e-05/0.3138, allocations: 77.11 kB / 435.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008203/0.3146, allocations: 0.8025 MB / 436.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.3147, allocations: 33.7 kB / 436.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/0.315, allocations: 440.7 kB / 436.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.3151, allocations: 78.78 kB / 436.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.697e-05/0.3152, allocations: 57.84 kB / 437 MB, free: 2.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.3153, allocations: 321.9 kB / 437.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3154, allocations: 64.22 kB / 437.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.3156, allocations: 158.3 kB / 437.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.3159, allocations: 226.1 kB / 437.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3159, allocations: 0 / 437.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005871/0.3165, allocations: 423.7 kB / 438.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.3166, allocations: 4 kB / 438.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.3166, allocations: 16 kB / 438.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003493/0.317, allocations: 141.1 kB / 438.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3171, allocations: 31.98 kB / 438.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005728/0.3177, allocations: 0.7083 MB / 439 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.318, allocations: 23.88 kB / 439 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.318, allocations: 12 kB / 439.1 MB, free: 0.6367 MB / 350.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.0002141/0.3182, allocations: 201.8 kB / 439.3 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.3183, allocations: 106.8 kB / 439.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007082/0.3191, allocations: 419.4 kB / 439.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3191, allocations: 0 / 439.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3191, allocations: 0 / 439.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3191, allocations: 0 / 439.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.3196, allocations: 0.5111 MB / 440.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.3196, allocations: 8 kB / 440.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.3198, allocations: 19.92 kB / 440.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002514/0.32, allocations: 147.2 kB / 440.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.3201, allocations: 11.94 kB / 440.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005956/0.3207, allocations: 0.6954 MB / 441.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3207, allocations: 3.984 kB / 441.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005278/0.3212, allocations: 451.9 kB / 441.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.3214, allocations: 175.8 kB / 441.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.305e-05/0.3215, allocations: 4 kB / 441.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.3217, allocations: 8 kB / 441.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.3217, allocations: 11.98 kB / 441.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.3218, allocations: 15.98 kB / 441.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005633/0.3223, allocations: 0.5344 MB / 442.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3223, allocations: 8 kB / 442.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005368/0.3229, allocations: 195.8 kB / 442.5 MB, free: 13.01 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.0005071/0.3234, allocations: 299.2 kB / 442.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.324, allocations: 282 kB / 443.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.324, allocations: 4 kB / 443.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.3243, allocations: 183.3 kB / 443.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007693/0.3251, allocations: 160.2 kB / 443.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.3269, allocations: 1.221 MB / 444.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.3273, allocations: 0.9374 MB / 445.6 MB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002575/0.3276, allocations: 110.7 kB / 445.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.682e-05/0.3277, allocations: 51.44 kB / 445.8 MB, free: 9.68 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3277, allocations: 0 / 445.8 MB, free: 9.68 MB / 366.1 MB Notification: Performance of Templates: time 0.0155/0.3432, allocations: 9.101 MB / 454.9 MB, free: 0.6523 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches